SCR_LINE()

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

Syntax

SCR_LINE()
  RETURNING result 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.