scr_line()

Returns the index of the current row in the screen array.

Syntax

scr_line()
  RETURNS INTEGER

Usage

The scr_line() function returns the index of the current row in the screen array. It is typically used inside a DISPLAY ARRAY or INPUT ARRAY statement.

Important: When using new graphical objects such as TABLE containers, this function can return an invalid screen array line number, because the current row may not be visible if the user scrolls in the list with scrollbars.

Do not confuse scr_line() with arr_curr(), the first returns the index of the current row in the form screen array, and the second returns the index of the current row in the program variable.