Skip to main content
Version: Next

METHOD GET FOLDERS

METHOD GET FOLDERS ( arrNames {; filter}{; *} )

ParameterTypeDescription
arrNamesText arrayArray of Home page folder names
filterTextName filter
*OperatorIf passed = command applies to host database when executed from a component (parameter ignored outside of this context)

Description

The METHOD GET FOLDERS command returns, in the arrNames array, the names of folders created on the Home page of the 4D Explorer:

Since folder names must be unique, the hierarchy is not returned in this array.

You can limit this list of folders by passing a comparison string in the filter parameter: in this case, only folders whose names match the filter are returned. You can use the @ character in order to specify "starts with", "ends with" or "contains" type filters. If you pass an empty string, the filter parameter is ignored.

If the command is executed from a component, it returns by default the paths of the component methods. If you pass the * parameter, the array contains the paths of the methods of the host database.

See also

METHOD GET PATHS

Properties

Command number1206
Thread safe