
355
Syntax:
ERL
Description:
ERL
returns the current statement location of the program where a run-time error
occurred most recently.
• The
ERL
function works only with line numbers and not with labels.
• The returned value is in decimals, so it may be necessary to use the
HEX$
func-
tion for decimal-to-hexadecimal conversion when using the
ERL
function in error-
handling routines.
• If converted from decimals to hexadecimals with the
HEX$
function, addresses
which the
ERL
returns correspond to ones that are outputted to the left end of the
address-source list in hexadecimal (which may be printed out if a +L option is
specified in compilation).
• Since the
ERL
function returns a significant value only when a run-time error
occurs, you should use this function in error-handling routines where you can
check the error type for effective error recovery.
Reference:
ERror Line
Error-handling function
ERL
Returns the current statement location of the program where a run-time error occurred.
Statements:
ON
ERROR
GOTO
and
RESUME
Functions:
ERR
and
HEX$
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...