next up previous contents index
Next: HighVideo Up: Procedures and Functions Previous: DelLine

GotoXY

   

Declaration:

Procedure GotoXY (X: Byte; Y: Byte) ;

Description:

Positions the cursor at (X,Y), X in horizontal, Y in vertical direction relative to the origin of the current window. The origin is located at (1,1), the upper-left corner of the window.

Errors:

None.

See also:

WhereX, WhereY, Window

Example
Program Example6;
uses Crt;

{ Program to demonstrate the GotoXY function. }

begin
  ClrScr;
  GotoXY(10,10);
  Write('10,10');
  GotoXY(70,20);
  Write('70,20');
  GotoXY(1,22);
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998