zc

zc is a system variable used on grid input in masks. It gives access to the current value during controls, initialization, selection and help routines.

This function is only usable in Classic pages related code and is deprecated for code running in version 7 mode.

Syntax

 [S]zczc

Examples

# Let's control that a date is in the future. If this is not the case, assign it to the current date$CONTROL_STARTDATEIf zc<date$zc=date$EndifEnd# Let's check if a modification has been done on the field FIELD1 (in the control routine)$CONTROL_FIELD1If zc<>[M]FIELD1Gosub PROPAGATE_UPDATE : # The field has been modifiedEndifEnd

Description

zc gives access to the "current field" being inputted or controlled in mask operation associated code.

The current field exists in the following cases:

Comments

The data type associated to zc depends on the field. This can be tested by type function.

See also

Affzo, Diszo, Effzo, Envzo, Grizo, zonsui, zoncou, zonsor.