cursor_col

Gets/sets the cursor column position.

Available in:

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

Syntax

int cursor_col([position])
int             position

Description

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

Notes

The range is between 0 and G.SCREENCOLS - 1. If the position < 0 then 0 is used. If position > (G.SCREENCOLS - 1) then G.SCREENCOLS - 1 is used.

Example

Positions cursor in the middle of the screen on the current row.
cursor_col(G.SCREENCOLS / 2);