Returns the current row in a DISPLAY ARRAY or INPUT ARRAY.




The arr_curr() function returns an integer value that identifies the current row of a list of rows in an INPUT ARRAY or DISPLAY ARRAY instruction.

The first row is numbered 1.

Important: The row index returned by the arr_curr() function is constant in the context of a dialog block, even when removing rows from the array by program.

The arr_curr() and scr_line() functions can return different values if the program array is larger than the screen array.

The arr_curr() can be used to get the index of the last current row, after the execution of the dialog.

In multiple dialogs implementing several list controllers, consider using the ui.Dialog.getCurrentRow() method instead of arr_curr() to get the current row of a specific list identified by its screen array.