This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
METHOD GET COMMENTS
|
METHOD GET COMMENTS ( path ; comments {; *} ) | ||||||||
Parameter | Type | Description | ||||||
path | Text, Text array |
![]() |
Text or Text array containing one or more method path(s) | |||||
comments | Text, Text array |
![]() |
Documentation of designated method(s) | |||||
* | Operator |
![]() |
If passed = command applies to host database when executed from a component (parameter ignored outside of this context) | |||||
The METHOD GET COMMENTS command returns, in the comments parameter, the documentation of the method(s) designated by the path parameter.
The documentation retrieved by this command is displayed in the 4D Explorer (not to be confused with lines of comments in the code that are retrieved using METHOD GET CODE).
It contains:
This documentation can be generated for methods ot type triggers, project methods, form methods, database methods, and classes.
Note: Forms and form methods share the same documentation.
You can use two types of syntaxes, based either on text arrays, or text variables:
C_TEXT(tVpath) // text variables
C_TEXT(tVcomments)
METHOD GET COMMENTS(tVpath;tVcomments) // documentation of a single method
ARRAY TEXT(arrPaths;0) // text arrays
ARRAY TEXT(arrComments;0)
METHOD GET COMMENTS(arrPaths;arrComments) // documentation of several methods
You cannot mix the two syntaxes.
If the command is executed from a component, it applies by default to the component methods. If you pass the * parameter, it accesses the methods of the host database.
Product: 4D
Theme: Design Object Access
Number:
1189
Created: 4D v13
4D Language Reference ( 4D v20 R7)