Usage / INPUT ARRAY control blocks |
The BEFORE ROW block is executed each time the user moves to another row. This trigger can also be executed in other situations, such as when you delete a row, or when the user tries to insert a row but the maximum number of rows in the list is reached.
You typically do some dialog setup / message display in the BEFORE ROW block, because it indicates that the user selected a new row or entered in the list.
When the dialog starts, BEFORE ROW will be executed for the current row, but only if there are data rows in the array.
When called in this block, the ARR_CURR() function returns the index of the current row.
INPUT ARRAY ... ... BEFORE ROW MESSAGE "We are on row # ", arr_curr() ...