Usage / INPUT ARRAY control blocks |
The AFTER DELETE block is executed each time the user deletes a row, after the row has been deleted from the list.
When an AFTER DELETE block executes, the program array has already been modified; the deleted row no longer exists in the array (except in the special case when deleting the last row). The ARR_CURR() function returns the same index as in BEFORE ROW, but it is the index of the new current row. The AFTER ROW block is also executed just after the AFTER DELETE block.
INPUT ARRAY p_items WITHOUT DEFAULTS FROM s_items.* ... AFTER DELETE LET r = arr_curr() FOR i=r TO arr_count() LET p_items[i].item_lineno = i END FOR ...