Specifications
356
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.
• Addresses which the
ERL returns correspond to ones that are outputted to the left
end of the address-source list in hexadecimals when a +L option is specified in
compilation, if converted from decimals to hexadecimals with the
HEX$ function.
• 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$