|
User-defined Variables
User-defined variables are actually defined by the GPP developer (not the runtime user) in the program declaration part (see below), and can be used for any purpose. They are usually used for program control, and to hold temporary values and calculated results.
User-defined variable names are made of letters and digits only, and must start with a letter. User-defined variable names must not contain an underscore. For instance, valid names are OldX or MaxVal.
A variable name cannot be a reserved GPP keyword, such as OUTPUT or TAN. Variable names can be no longer than 31 characters.
The number of user-defined variables in each GPP program is limited to 25,000. That number includes all Interaction variables and array members (see below). As long as that limit is concerned, each array member counts as one variable. Trying to define more user-defined variables will result in a compilation error.
|