mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 17:51:38 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			308 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			308 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example10;
 | |
| uses Crt;
 | |
| 
 | |
| { Program to demonstrate the InsLine function. }
 | |
| 
 | |
| begin
 | |
|   ClrScr;
 | |
|   WriteLn;
 | |
|   WriteLn('Line 1');
 | |
|   WriteLn('Line 3');
 | |
|   WriteLn;
 | |
|   WriteLn('Oops, forgot Line 2, let''s insert at the cursor postion');
 | |
|   GotoXY(1,3);
 | |
|   ReadKey;
 | |
|   InsLine;
 | |
|   Write('Line 2');
 | |
|   GotoXY(1,10);
 | |
| end.
 | 
