Tuesday, March 5

DELETE

The DELETE command is used to delete program lines or line ranges.
Syntax
DELETE [line number 1] [-line number 2]
DELETE line number 1 -
Where.
line number 1 : The first line to be deleted.
line number 2 :  The last line to be deleted.
  • BASIC always returns to the command level after a DELETE command is executed.   
Example 19
DELETE 50 {press enter key}
It deletes line 50.
DELETE 60 - 100 {press enter key}
It deletes lines 60 through 100. inclusively.
DELETE - 50 {press enter key}
It deletes all lines up to and including line 50.
DELETE 50 - {press enter key}
It deletes all lines from line 40 the end of the program.       

No comments:

Post a Comment