LOCATE

Top  Previous  Next

Syntax

LOCATE(line as INT, column as INT)

Description

Positions the caret in the console window.

Parameters

line - The line in the console window to place the caret.

column - The character position to place the caret.

Return value

None

Remarks

OPENCONSOLE must have been executed before this statement.

Example usage

OPENCONSOLE
LOCATE 10,1
PRINT "Position 10,1"
LOCATE 10,50
PRINT "Position 10,50"
LOCATE 1,1
PRINT "Position 1,1"
LOCATE 1,50
PRINT "Position 1,50"
LOCATE 12,1
PRINT "Press Any Key To Close"
DO:UNTIL INKEY$ <> ""
CLOSECONSOLE
END