Resume |
Top Previous Next |
×V4.0Ø
Syntax - Resume
Description: A Resume line should only be run when an error has occurred. That is, this command should only be placed in the error handling section of the code. When run with no additional parameters, script execution will resume at the line where the error occurred. Since this means that the line that caused the error will run again, this is a good option to use when there is a timing issue that can be resolved with time, or a condition has changed which will allow the command to execute successfully upon retry. The error status is cleared as well as the error variables &ErrorCategory, &ErrorNumber, &ErrorMessage, &ErrorID, &ErrorLineNumber. This indicates that the error handling has finished for this error.
Syntax - Next Resume Next
Description: Resume Next behaves like Resume except that script execution continues on the line immediately following the line where the error occurred. The error status is cleared as well as the error variables &ErrorCategory, &ErrorNumber, &ErrorMessage. This indicates that the error handling has finished for this error.
Syntax - Label Resume <LabelName>
Description: Resume <LabelName> is similar to a typical GoTo except that in addition to resuming execution at the specified label, error variables &ErrorCategory, &ErrorNumber, &ErrorMessage are cleared as well as the indication that EMUE is in an error handling procedure.
See Also:
|