CURSORX function

Purpose

Return the current column position of the caret.

Syntax

nColumn& = CURSORX

Remarks

The return value will be in the range of 1 to the maximum number of columns in the console, which may be retrieved with the SCREENX function.

CURSORX is functionally equivalent to the POS function in DOS BASIC.

The console size may be changed using CONSOLE SCREEN.

See also

CURSOR function, CURSOR statement, CURSORY, LOCATE, SCREENX