ZC

Contents


zc contains the value of the current variable (in input, initialisation, check, selection and help mode).

 

Class, type and dimension

[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.

 

Examples

   # 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

 

Description and comments

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.

 

Comments

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.

 

Associated errors

Error

Description

ERPAZC (9)

The current zone does not exist.

 

Associated key words

TYPE - MKSTAT - STATUS - ZONCOU


CONTENTS


Copyright © Sage 1999 - 2007