DELETE

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: DELETE
Abbreviation: DE Shift+L
Type: Command
Token code: 247/$F7
Handling routine
in BASIC ROM:
BASIC 3.5:
44634–44787
$AE5A–$AEF3
BASIC 7.0:
24199–24371
$5E87–$5F33
List of all BASIC keywords


Remark: This article describes the BASIC command DELETE in Commodore BASIC V3.5 or higher.

Type: Command
General Programming-Syntax: DELETE [<first line>][-][<last line>]

DELETE is a BASIC 3.5 command that is used to delete a line range from the BASIC program text. It can only be executed in direct mode.

Note: The BASIC line numbers can be used only in the range from 0 to 63999.

Examples[edit | edit source]

Deletes line 50:

DELETE 50

Deletes lines 50 to 100 inclusive:

DELETE 50-100

Deletes all lines from the beginning of the program (including line 200) to line 200:

DELETE -200

Deletes all lines from 10 to the end of the program

DELETE 10-

Never deletes a line (if starting line number is greater end line number):

DELETE 2-1


BASIC V3.5 Commands

ABS | ASC | ATN | AUTO | BACKUP | BOX | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLOR | CONT | COPY | COS | DATA | DEC | DEF | DELETE | DIM | DIRECTORY | DLOAD | DO | DRAW | DS | DS$ | DSAVE | END | EL | ELSE | ER | ERR$ | EXIT | EXP | FN | FOR | FRE | GET | GET# | GETKEY | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | NEW | NEXT | ON | OPEN | PAINT | PEEK | POKE | POS | PRINT | PRINT USING | PRINT# | PUDEF | RCLR | RDOT | READ | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RLUM | RND | RUN | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SOUND | SPC | SQR | SSHAPE | STOP | STR$ | SYS | TAB | TAN | TRAP | TROFF | TRON | UNTIL | USR | VAL | VERIFY | VOL | WHILE | WAIT