LOCATE statement

Purpose

Set the caret position.

Syntax

LOCATE [row%] [, [column%]]

Remarks

row% specifies the screen row (starting at 1) at which to position the caret, in the range 1 through SCREENY.

column% specifies the screen column (starting at 1) at which to position the caret, in the range 1 through SCREENX.

If either expression is missing or invalid, that particular coordinate is left unchanged.

For example, LOCATE , 10 moves the caret to column 10 on the current line.

The caret visibility and size can be adjusted with the CURSOR statement, and the size can be queried with the CURSOR function.

See also

CURSOR function, CURSOR statement, CURSORX, CURSORY, SCREENX, SCREENY

Example

CLS

LOCATE 13, 34

PRINT "Hello from PB/CC!"

WAITKEY$