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]zc
   zc

Examples

# Let's control that a date is in the future. If this is not the case, assign it to the current date
$CONTROL_STARTDATE
  If zc<date$
    zc=date$
  Endif
End

# Let's check if a modification has been done on the field FIELD1 (in the control routine)
$CONTROL_FIELD1
  If zc<>[M]FIELD1
    Gosub PROPAGATE_UPDATE : # The field has been modified
  Endif
End

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.