Applications execute the ON ROW CHANGE clause when the cursor leaves the current row and goes to another one. The ON ROW CHANGE clause is executed only if the user changed one or several values within the row and the touched flag of the corresponding fields are set. Note, that when the application leaves the dialog instruction or the input goes to another row, the touched flags for the current row are reset.
The ON ROW CHANGE clause can be used for dynamic modification of data in database, for changed data verification, etc.
If arr_curr() function is invoked from the ON ROW CHANGE clause, it returns the index of the current row in which the changes were performed.
INPUT ARRAY myarr WITHOUT DEFAULTS FROM scrarr.*
ON ROW CHANGE
LET i = arr_curr()
MESSAGE "The row "||" was changed"
END INPUT
The clause is executed prior to AFTER ROW clause.