17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

DELETE Command<br />

Purpose:<br />

To delete program lines or line ranges.<br />

Syntax:<br />

DELETE [line number1][-line number2]<br />

DELETE line number1-<br />

Comments:<br />

line number1 is the first line to be deleted.<br />

line number2 is the last line to be deleted.<br />

GW-BASIC always returns to command level after a DELETE command is executed. Unless at<br />

least one line number is given, an "Illegal Function Call" error occurs.<br />

The period (.) may be used to substitute for either line number to indicate the current line.<br />

Examples:<br />

DELETE 40<br />

Deletes line 40.<br />

DELETE 40-100<br />

Deletes lines 40 through 100, inclusively.<br />

DELETE -40<br />

Deletes all lines up to and including line 40.<br />

DELETE 40-<br />

Deletes all lines from line 40 to the end of the program.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/DELETE.html28/03/2004 21.29.23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!