|
MODAL
The MODAL statement can be used to define variables, both system and user-defined, as modal. See earlier section for a detailed discussion on variable modality.
MODAL variable variable2 ...;
In GPP2 all variables are non-modal by default. This statement allows the GPP developer to define specific variables as modal.
Arrays can be used as arguments to these statements. However individual array members cannot be used - the whole array is either modal or non-modal.
Example
MODAL X Y X_CURPOS;
MODAL ARRAY;
GPP Compatibility Notes:
In the old GPP, there was also a NON_MODAL statement. With GPP2, all variables are non-modal by default, so there is no need for this statement.
With the old GPP, it was possible to use a special ALL_VAR pseudo variable as an argument to the MODAL statement. ALL_VAR is not supported in GPP2.
|