Go to the first, previous, next, last section, table of contents.


Global Variables

These are almost identical to local variables, except that the name of the variable must start with the underscore character. This distinction in naming identifies the variable as global to all equates (any equate can read or write the value at any time, although it must always be ensured that the variable has been written to prior to any read from the variable takes place). System variables are simply a special case of global variable where the variable has already been declared with a value generated by parsing the GRG file.

System variables maintain their type and will complain if a different data type from that which they were defined with is written into them (which is not the case for normal global variables).


Go to the first, previous, next, last section, table of contents.