home *** CD-ROM | disk | FTP | other *** search
- PROGRAM PROG15B;
- { Copyright (C), 1988 by Lyle Faurot. All rights reserved.
-
- New Topics: Cursor location
- }
-
- USES CRT;
-
- VAR
- X, Y : Integer;
-
- PROCEDURE Locate(X, Y : Integer);
- BEGIN
- GotoXY(Y, X); {Note the X and Y here are reversed from GotoXY }
- END;
-
- BEGIN
- ClrScr;
- Write('Enter X and Y: ');
- ReadLn(X, Y);
- Locate(X, Y);
- WriteLn(X,' ',Y);
- Repeat Until KeyPressed;
- END.