552
Handling errors
Statements
ON ERROR GOTO
Enables error trapping.
RESUME
Causes program execution to resume at a speci-
fied location after control is transferred to an error-
handling routine.
Functions
ERL
Returns the current statement location of the pro-
gram where a run-time error occurred.
ERR
Returns the error code of the most recent run-time
error.
Defining and allocating variables
Statements
COMMON
Declares common variables for sharing between
user programs.
CONST
Defines symbolic constants to be replaced with
labels.
DATA
Stores numeric and string literals for
READ
state-
ments.
DECLARE
Declares user-defined function
FUNCTION
or
SUB
externally defined.
DEFREG
Defines register variables.
DIM
Declares and dimensions arrays; also declares the
string length for a string variable.
ERASE
Erases array variables.
GLOBAL
Declares one or more work variables or register
variables defined in a file, to be global.
LET
Assigns a value to a given variable.
PRIVATE
Declares one or more work variables or register
variables defined in a file, to be private (as local
variables.)
READ
Reads data defined by
DATA
statement(s) and
assigns them to variables.
RESTORE
Specifies a
DATA
statement location where the
READ
statement should start reading data.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...