zonsui

zonsui is a system variable that can be assigned during a control called during an input in a mask in order to change the order of input by reassigning the next field to be inputted.

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

Syntax

 [S]zonsuizonsui

Examples

# Let's control the current field# If the value is not in the range [0,100], let's stay on the current field without displaying an error$C_FIELDIf (zc>100) or (zc<0)zonsui = "FIELD"EndifEnd# Control on a grid.# If there is an error, return to the previous line on the same field.$C_FIELDGosub CTRL_CONSISTENCYIf ERROR_FOUNDzonsui = "FIELD(" + num$(max(nolign-2,0)) + ")"EndifEnd# If this code is executed during the input on a grid that has BASTAB as bottom-line variable, return to 1st line in input mode# If this code is executed during the input on a field that does not belong to the screen, return to 1st line in command modezonsui = "BSTAB"# If this code is executed during the input on a grid that has BASTAB as bottom-line variable, return to last line in input mode# If this code is executed during the input on a field that does not belong to the screen, return to last line in command modeSubprog APRES_BSTABzonsui = "BSTAB" + "(" + num$(max(0, BSTAB)) + ")"End

Description

zonsui is an alphanumeric variable that contains the next field to be inputted (if not empty). By default, it contains the empty string "" when the control, init or help label is reached. When the value is empty, the next field in the mask order is accessed.

Comments

zonsui = zoncou

See also

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