The global section

Navigation:  Appendices > Macro Language > Code Structure >

The global section

Previous pageReturn to chapter overviewNext page

Global Variables are declared in the block of code between the global and the input keywords, if there is an input section, and between the global and the var keywords, otherwise. The global section is optional.

 

global

 nDate

input

 // optional section

var

 // declare some variables

begin

 // macro body

end

 

Variables are declared by simply listing them in the declaration block, the same way it is done in the var block.

 

You do not need to declare the type of the variables, since it is determined by the first letter of the variable name.

 

Do not use any separators such as commas to separate the variable.

 

Note that the list of variable can extend onto as many lines as you wish.

 

The specificity of global variable is that they retain their value from one execution of a macro to another.


Topic 145700 updated on 13-Jun-2005.
Topic URL: http://www.qppstudio.net/webhelp/index.html?global.htm