Click or drag to resize

SetPos Function

Move the cursor to a new position on the terminal window.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION SetPos(
	iRow AS LONG,
	iCol AS LONG
) AS VOID
View Source

Parameters

iRow
Type: Int32
The new row position of the cursor
iCol
Type: Int32
The new column position of the cursor

Return Value

Type: 
Remarks
SetPos() moves the cursor to the specified location, and updates Row() and Col() with the new cursor position.
Examples
This example shows the relationship between the DevPos() function and the @...SAY command:
X#
SetPos(10, 10)
? Qout("Hello there")
See Also