Skip to main content
Version: Next

METHOD GET NAMES

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

ParameterTypeDescription
arrNamesText array🡘Array of project method names
filterText🡒Name filter
*Operator🡒If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

Description

The METHOD GET NAMES command fills the arrNames array with the names of project methods created in the application.

By default, all methods are listed. You can restrict this list by passing a comparison string in the filter parameter: in this case, the command only returns methods whose name matches the filter. You must use the @ character in order to set filters of the "starts with", "ends with" or "contains" type.

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

Note: Methods placed in the trash are not listed.

Example

Here are a few typical examples of use:

  // List of all project methods of the database
 METHOD GET NAMES(t_Names)
 
  //  List of project methods beginning with a specific string
 METHOD GET NAMES(t_Names;"web_@")
 
  // List of project methods in the host database beginning with a specific string
 METHOD GET NAMES(t_Names;"web_@";*)