GET MACRO PARAMETER
GET MACRO PARAMETER ( selector ; textParam )
Parameter | Type | Description | |
---|---|---|---|
selector | Integer | → | Selection to use |
textParam | Text | ← | Returned text |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The GET MACRO PARAMETER command returns, in the paramText parameter, all or part of the text of the method from which it was called.
The selector parameter can be used to set the type of information to be returned. You can pass one of the following constants, added to the “4D Environment” theme:
Constant | Type | Value |
---|---|---|
Full method text | Integer | 1 |
Highlighted method text | Integer | 2 |
If you pass Full method text in selector, all of the text of the method will be returned in paramText. If you pass Highlighted method text in selector, only the text selected in the method will be returned in paramText.
Example
Refer to the example of the SET MACRO PARAMETER command.