82
DELETE Directive
Remove Lines from Program
Format
DELETE [start_stmtref][,[end_stmtref]]
Where:
end_stmtref
Last program statement to be deleted. Line label or number.
start_stmtref
Starting program statement to be deleted. Line label or number.
Description
Use the DELETE directive to delete a range of statements from the current program.
For example, DELETE SECT1,450 deletes from line label SECT1: to line 0450,
inclusive.
If you only include a starting statement reference, only that statement is deleted; e.g.,
DELETE 510 ! Deletes statement 0510
510 ! Is the same as DELETE 510
If you include both a starting reference and a comma, all statements from the
reference to the end of the program are deleted. If you include a comma and an
ending reference, statements from the start of the program up to and including the
ending reference are deleted; e.g.,
DELETE 260, ! Deletes statements from line 0260 to program end
DELETE ,890 ! Deletes from program start, up to and including line number 0890
If you omit statement references, the complete program is deleted from memory.
Examples
->LIST
0010 REM "TEST"
0020 PRINT "TEST"
0030 STOP
->DELETE
->LIST
No program is in memory, so ProvideX doesn't return a listing and will report errors
if you try to EDIT or SAVE.