ZC |
zc contains the value of the current variable (in input, initialisation, check, selection and help mode).
[S]zc
The type of zc depends on the context; it corresponds to the type of the variable being entered (at the time the check or help is executed) or being initialised.
# In a routine associated with a mask,
test to see if
# zc
>= 100. If not, 100 is assigned to zc.
CTRL_ZONE :# Label called from the mask
If zc < 100
zc = 100
Endif
End :# Return
to mask
zc gives access to the "current zone", that is to the variable defined as such by the Adonix execution context.
The current zone exists in the following cases:
- a formula or routine called from a mask in the validity control zone. zc then represents the value entered by the user and it may be reassigned by the verification routine,
- a formula or routine called from a mask as default value. If zc has been modified, its value is then copied to the variable corresponding to the mask,
- a routine called from a mask by the help key. zc also represents the variable being entered and it may similarly be reassigned,
- during a calculation, zc corresponds to the zone being entered.
The type of zc depends on the variable being entered. This may be tested with the type function.
For a dimensioned variable, zc indicates the element of this variable being entered or initialised.
|
Error |
Description |
|
ERPAZC (9) |
The current zone does not exist. |
TYPE - MKSTAT - STATUS - ZONCOU
|
|