COLLECT

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: COLLECT
Abbreviation: COL Shift+L
Type: Command
Token code: BASIC 4.0:
209/$D1
BASIC 3.5 and 7.0:
243/$F3
Handling routine
in BASIC ROM:
BASIC 3.5
51660–51673
$C9CC–$C9D9
BASIC 7.0:
41775–41797
$A32F–$A345
List of all BASIC keywords


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

Type: Command
General Programming-Syntax: COLLECT [D(<drive number>)] [[,]ON U(<device number>)]

COLLECT is a BASIC 3.5 command that is used to free up space allocated to improperly closed files on a diskette.

Examples[edit | edit source]

On drive 1 (on a dual drive floppy):

COLLECT D1

On drive 0 of floppy unit with device number 9:

COLLECT ON U9


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