Click or drag to resize

SetPos Function

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

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

Parameters

iRow
Type: Long
The new row position of the cursor
iCol
Type: Long
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#
1SetPos(10, 10)
2? Qout("Hello there")
See Also