currentArrayScreenLine()
You can use the consoleLib.currentArrayScreenLine() system function to determine the number of the current line within the scrolling screen array during an openUI statement.
Syntax
consoleLib.currentArrayScreenLine( )
returns (result INT)
- result
- The number of the current line within the screen array.
Example
Assume you have set up an array dictionary
within your console form, as
in the example in Using an array dictionary in Console UI.
Here the data array has 20 elements, but the screen array has only
four. Assume
that a user scrolls downward through the displayed records to the
19th record,
and your code contains the following lines in an appropriate onEvent block
within the openUI statement:
i = currentArrayDataLine();
j = currentArrayScreenLine();The value of i is
19, indicating the 19th record in the
data array. The value of j is 4, indicating the bottom
row
of the screen display. This is not the absolute line number within
the window,
but the relative line number within the scrolling screen array.