GOTO XY
GOTO XY* ( x ; y )
| Parameter | Type | Description | |
|---|---|---|---|
| x | Integer | → | x (horizontal) position of cursor | 
| y | Integer | → | y (vertical) position of cursor | 
Description
he GOTO XY command is used in conjunction with the MESSAGE command when you display messages in a window opened using Open window.
GOTO XY positions the character cursor (an invisible cursor) to set the location of the next message in the window.
The upper-left corner is position 0,0. The cursor is automatically placed at 0,0 when a window is opened and after ERASE WINDOW is executed.
After GOTO XY positions the cursor, you can use MESSAGE to display characters in the window.
Example 1
See example for the MESSAGE command.
Example 2
See example for the Milliseconds command.
Example 3
The following example:
 Open window(50;50;300;300;5;"This is only a test")
 For($vlRow;0;9)
    GOTO XY($vlRow;0)
    MESSAGE(String($vlRow))
 End for
 For($vlLine;0;9)
    GOTO XY(0;$vlLine)
    MESSAGE(String($vlLine))
 End for
 $vhStartTime:=Current time
 Repeat
 Until((Current time-$vhStartTime)>†00:00:30†)
displays the following window (on Macintosh) for 30 seconds:
See also
Properties
| Command number | 161 | 
| Thread safe | ✗ |