4D v13.4

METHOD GET NAMES

Home

 
4D v13.4
METHOD GET NAMES

METHOD GET NAMES 


 

METHOD GET NAMES ( arrNames {; filter}{; *} ) 
Parameter Type   Description
arrNames  Text array in Array of project method names
filter  Text in Name filter
Operator in If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

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 you pass an empty string, the filter parameter is ignored. 

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_@";*)

 
PROPERTIES 

Product: 4D
Theme: Design Object Access
Number: 1166

 
INDEX

Alphabetical list of commands

 
HISTORY 

New
Created: 4D v13