4D v16.3

GOTO XY

Home

 
4D v16.3
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 MESSAGE command.

See example for the Milliseconds command.

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 

MESSAGE

 
PROPERTIES 

Product: 4D
Theme: Messages
Number: 161

 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)