cursor_row

Gets/sets cursor row position.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

int cursor_row([position])
int             position

Description

Returns the cursor's current row location.
position specifies the cursor position as row in current column.

The range is between 0 and G.SCREENROWS - 1.

If the value of position < 0 then 0 is used.

If position > G.SCREENROWS - 1 then G.SCREENROWS - 1 is used.

Example

Positions cursor in the first row of the screen at the current column.
cursor_row(0);