beautypg.com

Delete, Warning – Remote Processing CAMBASIC User Manual

Page 64

background image

Comm ands - 31

DELETE

Command

SYNTAX:

DEL [– ] line [– line] [– ]

PURPOSE:

To delete CA MBASIC program lines.

REMARK S:

The DE L comm and erases the specified range of lines from the program. CAM BASIC always
returns to the Immediate Mode after a DEL ETE is executed.

RELATED:

None

EXAMPLE:

DEL 10

Deletes line 10

DEL 30–78

Deletes lines 30 through 78.

DEL –40

Deletes all lines from the beginning of the program up to and including

line 40.

DEL 100–

D e l et e a l l l in e s f r om 1 0 0 t o t he e nd o f t he p r og r a m .

To delete the whole program, type NEW. If you accidentally type NEW, you can r ecover the
program by typing “U NNE W” . Y ou cannot recove r individually deleted lines.

WARNING:

If you specify a deletion range and the second line number does not exist, the next

higher line number will be deleted.

DEL does not work in hidden program s.

ERROR:

< Line/ label not found > – If the first line does not exist