4D v14.3METHOD GET PATHS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
METHOD GET PATHS
METHOD GET PATHS
The METHOD GET PATHS command fills the arrPaths array with the internal pathnames and names of methods in the application that are of the type specified by the methodType parameter. If your code is organized in "folders" in the 4D Explorer (Home page), you can pass a folder name in the optional folderName parameter. In this case, the arrPaths array only contains paths of methods that are found in this location. Note: You cannot use the "@" character in folderName. In the methodType parameter, you pass the type of method whose paths you want to get in the arrPaths array. You can use the following constants (individually or a combination of them), found in the Design Object Access theme:
The stamp parameter lets you only get the paths of methods modified after a specific point in time. As part of a version control system, this means that you can update only methods that were modified since the last backup. 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. If the command detects a duplicated method name, the error -9802 is generated ("Object path not unique"). In this case, it is advisable to use the MSC in order to verify the database structure. Retrieval of project methods found in the "web" folder: METHOD GET PATHS("web", Path Project method;arrPaths) Retrieval of database methods and triggers: METHOD GET PATHS(Path trigger+Path database method;arrPaths) Retrieval of project methods that were modified since the last backup: // we load the last saved value Refer to the example of the METHOD SET CODE command. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v13 SEE ALSO
Current method path ARTICLE USAGE
4D Language Reference ( 4D v14 R2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||