Code Completion

Navigation:  Macros > The Macros Editor > Writing Macros >

Code Completion

Previous pageReturn to chapter overviewNext page

The macros code editor puts time-saving information at your fingertips, through its Code Completion feature.

 

Pressing F2 to display System Variables

 

To insert the name of a variable at the cursor position, press F2. A list of all available variables appears, including the ones you defined and the system variables.

 

press F2 to access the list of system variables

press F2 to access the list of system variables

 

Select the one you wish to use and press ENTER. If you are not sure about some system variable, select it and press F1 to get specific help on system variables.

         

Pressing F3 to display System Functions

 

To insert the name of a built-in function, place your cursor at the insertion point and press F3. Again, to get help on a particular function, select it in the list and press F1.

 

press F3 to access the list of system functions

press F3 to access the list of system functions

 

When you insert a function using code completion, the function name is inserted along with the list of the parameters that this function expects.

 

press F2 from any function prototype and only the variables of the appropriate type appear

press F2 from any function prototype and only the variables of the appropriate type appear

 

If you place your cursor on any of the parameters, the use of F2 or F3 will only bring up a list of variables or functions of the corresponding data type, as shown above for variables, and below for functions.

 

press F3 from any function prototype and only the functions of the appropriate type appear

press F3 from any function prototype and only the functions of the appropriate type appear

 

Note that in all the above cases, you can have the inserted variable or function replace some previous text, by selecting some text before pressing F2 or F3. If no text is selected, then the variable or function will be inserted where the cursor was.

 

See also: system variables and built-in functions.


Topic 108238 updated on 10-Feb-2019.
Topic URL: https://www.qppstudio.net/webhelp_xe3/index.html?codecompletion.htm