4D v13.4

GOTO XY

Home

 
4D v13.4
GOTO XY

GOTO XY 


 

GOTO XY ( x ; y ) 
Parameter Type   Description
Longint in x (horizontal) position of cursor
Longint in y (vertical) position of cursor

The 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.

See example for the command MESSAGE.

See example for the command Milliseconds.

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:

 
PROPERTIES 

Product: 4D
Theme: Messages
Number: 161

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

MESSAGE