next up previous contents index
Next: WhereY Up: Procedures and Functions Previous: TextColor

WhereX

   

Declaration:

Function WhereX : Byte;

Description:

WhereX returns the current X-coordinate of the cursor, relative to the current window. The origin is (1,1), in the upper-left corner of the window.

Errors:

None.

See also:

GotoXY, WhereY, Window

Example
Program Example7;
uses Crt;

{ Program to demonstrate the WhereX and WhereY functions. }

begin
  Writeln('Cursor postion: X=',WhereX,' Y=',WhereY);
end.



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