Control blocks of INPUT ARRAY
Your program can control and monitor the changes made by the user by using control
blocks with the INPUT ARRAY statement.
The most commonly used INPUT ARRAY control blocks are:
- The
BEFORE INPUTblock - executed one time, before the runtime system gives control to the user. You can implement initialization in this block. - The
BEFORE ROWblock - executed each time the user moves to another row, after the destination row is made the current one. - The
ON ROW CHANGEblock - executed when the user moves to another row after modifications have been made to the current row. - The
ON CHANGEfieldname block - executed when the cursor leaves a specified field and the value was changed by the user after the field got the focus. - The
BEFORE INSERTblock - executed each time the user inserts a new row in the array, before the new row is created and made the current one. - The
AFTER INSERTblock - executed each time the user inserts a new row in the array, after the new row is created. You can cancel the insert operation with theCANCEL INSERTkeywords. - The
BEFORE DELETEblock - executed each time the user deletes a row from the array, before the row is removed from the list. You can cancel the delete operation with theCANCEL DELETEkeywords. - The
AFTER ROWblock - executed each time the user moves to another row, before the current row is left. This trigger can also be executed in other situations, such as when you delete a row, or when the user inserts a new row. - The
BEFORE FIELDblock - executes before giving the focus to a cell in the array input. - The
AFTER FIELDblock - executes when leaving a cell in the array input.
For a more detailed explanation of the priority of control blocks see INPUT ARRAY control blocks in the Genero Business Development Language User Guide.