Specifications

BASIC commands
PROGRAMMING MANUAL 40
Revision 5.0
3.2.42 BATTERY_LOW
/i
3.2.43 BREAK_RESET
/i
Description The BASICERROR command can be used to run a routine when a run-time
error occurs in a program. BASICERROR can only be used as part of an ON
... GOSUB or ON ... GOTO command. This command is required to be exe-
cuted once in the BASIC program. If several commands are used only the
one executed last is effective.
Arguments N/A
Example ON BASICERROR GOTO error_routine
...
no_error = 1
STOP
error_routine:
IF no_error = 0 THEN
PRINT "The error "; RUN_ERROR[0];
PRINT " occurred in line "; ERROR_LINE[0]
ENDIF
STOP
If an error occurs in a BASIC program in this example, the error routine will be
executed.
The IF statement is present to prevent the program going into error routine
when it is stopped normally.
See also ERROR_LINE, ON, RUN_ERROR.
Type System parameter (read-only)
Syntax BATTERY_LOW
Description This parameter returns the current state of the battery condition. If
BATTERY_LOW=ON then the battery needs to be changed. If
BATTERY_LOW=OFF then battery condition is ok.
Arguments N/A
Example No example.
See also N/A
Type System command
Syntax BREAK_RESET "program_name"
Description Used by Trajexia Studio to remove all break points from the specified pro-
gram.
Arguments program_name
The name of the program from which you want to remove all break
points.
Example BREAK_RESET "simpletest"
Will remove all break points from program simpletest.
See also N/A