INPUT Statement Control blocks
Control blocks such as BEFORE FIELD, ON CHANGE and
AFTER FIELD code blocks are called automatically during an INPUT
as the user moves the cursor through the fields of a form and modifies field values.
For example:
BEFORE FIELDcontrol blocks are executed immediately prior to the focus moving to the specified field. In this block, the program can for example display a message hint for the user.- An
ON CHANGEis triggered when leaving anEDITfield that was modified, or when the user clicks onCHECKBOXfields or changes the item of aCOMBOBOXfield. Such control block is typically used to enable/disable other fields that depend on the current value of the changed field. - The
AFTER FIELDblock is used to check the value of a field. If the value does not match you application rules, force the focus to stay in the current field with theNEXT FIELD CURRENTinstruction.
Go to INPUT control blocks in the Genero Business Development Language User Guide for a complete
list of INPUT control blocks.