ZONSUI |
zonsui is used to branch following the input, giving the name of the next field.
Char [S]zonsui(255)
# Check label on a FIELD
# If there is an error, you should return to this
field without a "beep"
FIELD
Gosub CONTROLE
If CONTROLE = FALSE
zonsui = "FIELD"
Endif
End
# Extract from a programme called by a check label on a
# dimensioned variable. If there is an error, you
should return to the previous
# line in the same field.
If
ERROR
zonsui = "FIELD(" + num$(index - 1) + ")"
Endif
# If input to a scrolling table: return to 1st line still
in input mode
# If input outside a scrolling table: position on 1st
line in command mode
zonsui =
"BSTAB" :# BSTAB is the name of the bottom of table variable
# Same but from the last line of the table
# It will be noted that the bottom of table variable
is treated as a
# dimensioned variable!
Subprog
APRES_ BSTAB
zonsui =
"BSTAB" + "(" + num$(max(0, BSTAB)) + ")"
zonsui is an alphanumeric variable in which the field name for which input will follow is specified. This means that for a routine on a field, for example, the next field to be entered can be changed.
The default zonsui value, when the control, initialisation or help label is reached, is always the empty string "".
When modifying zonsui during a routine on a field, if the zone completed cannot be entered, the routine branches to the next zone (or the previous one if zonsui precedes the current zone).
Branches for reassignment of zonsui operate on zones of different ranks.
Branches for reassignment of zonsui operate on zones of different masks.
If
during an input check validation of a zone is to be prevented, without sending
a "beep" to the screen, simply assign to zonsui the name of the zone on which the check is made. This
may be done by assignment, for non-dimensioned zones:
zonsui = zoncou
If the zone is dimensioned, write:
zonsui = zoncou +"(" + num$(index) + ")"
Setting mkstat to 2 will have the same effect.
The input option "H" also allows the warning beep to be avoided, but
it also applies if an incorrect character is entered.
No associated errors.
mkstat - Affzo - status - zoncou - indice.
|
|