Variable References

Variable references are also simple expressions. Any GPP variable (system, user-defined, Interaction) can be used as an expression. The expression type is the same as the variable type (numeric or string).

Example

X_CURPOS

S1

AR[12]

AR[<num-expr>]

For arrays, only single array members can be used as expressions. The array index is enclosed in square brackets. The full array name (AR) is not a valid expression and will generate a compilation error.

Array indexes can be any numerical expression (For example, X * 3). If the value of the index expression is not an integer number, GPP will round it to the nearest integer number (no error or warning will be flagged).

Valid array indexes range from 1 to the number of array entries. If an array index expression gives an illegal value (For example, -3), a runtime error is created.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.