RETURNS THE ERROR TYPE
ACTION
The system variable ERROR_TYPE$ returns the happened error type if an error occurs and if the command ON_ERROR_GOTO has been executed.
If no command ON_ERROR_GOTO has been executed or if no error occured, its value is the empty string "".
If an error occured and if the command ON_ERROR_GOTO has been executed, ERROR_TYPE$ contains an explanation of the error.
Remark: the language of The explanation is English, but it can be changed by the commands ERROR_FRENCH and ERROR_ENGLISH.
SYNTAX:
ERROR_TYPE$ in an expression
USE ERROR EXAMPLE
label err
on_error_goto err
top 0, 3+:rem here error
print "never printed"
err:
print "error"
print error_number
print error_type$
print error_line
ERROR_TYPE$
ERROR_TYPE$
SEE ALSO
ON_ERROR_GOTO
ERROR_ENGLISH
ERROR_FRENCH
ERROR_LINE
ERROR_NUMBER
ERROR_TYPE$