home *** CD-ROM | disk | FTP | other *** search
- Procedure Clear_Line ( Line_Number : Integer ) ;
-
- (*
- This procedure will erase the entire line specified
- by "Line_Number". The cursor position before the call
- is not effected in any way.
-
- LINE_NUMBER must be in the range 1..25. If it is not,
- the procedure will return without clearing any line.
-
- This procedure was written by Paul D. Guest and released
- to the Public Domain by same without restrictions on use,
- and with no monetary return expected or desired. Please
- direct comments or questions to the author via "The Indy
- Connection" RBBS @ (317) 846-8675 (24 hrs,7 days/week --
- Paul & Greg McClear, sysops).
- (Enjoy! - pdg 2/85)
-
- *)
-
- Var
- OldX : 1 .. 80 ;
- OldY : 1 .. 25 ;
-
- Begin (* Procedure Clear_Line *)
-
- If Line_Number IN [ 1 .. 25 ] Then
- (* Valid line number, so continue *)
- Begin
-
- OldX := WhereX ;
- OldY := WhereY ;
-
- GotoXY ( 1 , Line_Number ) ;
- ClrEOL ;
-
- GotoXY ( OldX , OldY )
-
- End (* If Line_Number IN [1..25] *)
-
- End (* Procedure Clear_Line *) ;
-