Resume
Resume
allows you to end the execution of an error handling routine and resume the execution at the line that follows the line where the error was thrown.
Resume
# Open a file, and handle the errorERROR_FLAG=0# OPEN_ERROR is the label used if the file cannot be opened (in a dedicated script ERRMGT)Onerrgo OPEN_ERR From ERRMGT# Let's open the fileOpeni filpath("TXT","TEST","txt")If ERROR_FLAGEndEndif# No more error management hereOnerrgo...End# Extract of the ERRMGT script$OPEN_ERRORERROR_FLAG=errnERROR_MSG=errmes$(errn)Resume
Resume
is only usable if an error routing defined by Onerrgo
has been set and if an error was thrown.
The instruction where the execution resumes is the following:
Error code | Description |
---|---|
32 | No error routing was done prior to the Resume execution. |
Onerrgo, End, errn, errl, errp, errmes$.