GETPOSITION

Top  Previous  Next

Syntax

GETPOSITION(win as WINDOW,x as INT BYREF,y as INT BYREF)

Description

Returns the current drawing position in the window.  Also known as the pen position.

Parameters

win - Window to retrieve drawing position from.

x, y - The position is stored in these variables.

Return value

None

Remarks

The variables x and y must be of type INT. The current drawing position is set with the MOVE statement, graphics operations, and text PRINTing.

See Also: MOVE

Example usage

DEF x,y as INT
PRINT myWin, "Some text to print"
'Get the position at the end of the last printed line
GETPOSITION myWin, x, y