HELP

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: HELP
Abbreviation: None
Type: Command
Token code: UNK
Handling routine
in BASIC ROM:
UNK
List of all BASIC keywords


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

Type: Command
General Programming-Syntax: HELP

HELP is a BASIC 3.5 command that is used to display help for the error in your program.

The HELP command is used after you get an error in your program. When you type HELP, the line where the error occured is listed with the portion containing the error displayed in flashing characters.

Examples[edit | edit source]

  10 FOR I=1 TO 50
  20 Q=10*I: R=I/0: T=5+I
  30 NEXT I
  RUN
  

It will display:

  ?DIVISION BY ZERO ERROR IN 20

entering the HELP will display

  20 Q=10*I: R=I/0: T=5+I
  

The "R=I/0: T=5+I" will be flashing.

Error finding:

100 TRAP 900
110 PRINT "START"
120 A=A+1: IF A=3 THEN END
130 PRINT "A:";: PRINT PRINT A
140 PRINT "END"
150 END
900 PRINT: PRINT "ERROR"ER"IN"EL
910 HELP
920 RESUME 120
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