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.

Syntax

 Resume

Examples

 # 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

Comments

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:

Associated errors

Error codeDescription
32No error routing was done prior to the Resume execution.

See also

Onerrgo, End, errn, errl, errp, errmes$.