Section 8: Program Editing138
number of lines to delete from the current program (the program that the calculator is currently positioned to). The calculator deletes the specified number of lines beginning at the current position in the program. DEL operates only in PRGM mode.
So, if you have a 40-line program and you wish to delete 16 lines beginning with line 6, you would first set the calculator to line 6 of the program. Then you would execute DEL and specify 016 to delete 16 lines. With the calculator set to line 6 of your imaginary program. DEL 016 would change the program ...
 
  ...from this...    
 
  ...to this.    
 
   
  00    
  00    
 
   
  01 LBLTBEGIN     
  01 LBLTBEGIN     
 
   
  02     
  02     
 
   
  03     
  03     
 
   
  04     
  04     
 
   
  05 RTN     
  05 RTN     
 
 
  06 LBL 01    
  06 LBL 02    
 
With the calculator set to line 6,
  07     
  07     
 
DEL 016 would delete 16 lines.
 
 
  21 RTN     
  24 END     
 
   
  22 LBL 02    
       
 
   
  23     
       
 
   
       
 
   
  40 END     
       
 
The DEL function will not delete beyond an END instruction. For example, if you execute DEL and specify 040 lines, and there are less than 40 lines in the program, the calculator will only delete up to but not including the END instruction.
With the calculator set to line 6 of our imaginary program, DEL 040 would only change the program ...
 
  ...from this...    
 
  ...to this.    
 
   
  00    
  00    
 
   
  01 LBLTBEGIN     
  01 LBLTBEGIN     
 
   
  02     
  02     
 
   
  03     
  03     
 
   
  04     
  04     
 
   
  05 RTN     
  05     
 
 
  06 LBL 02    
  06 END     
 
 
  07     
       
 
DEL 040 would only delete up
  08     
       
 
to but not including the END .
  09     
       
 
 
  10     
       
 
 
       
 
   
  24 END