Xbasic
RESUME, RESUME NEXT
Syntax
RESUME 0
RESUME NEXT
RESUME Label_Name
Arguments
- 0
Resumes program execution at the statement that caused the error.
- NEXT
Resumes execution with the statement immediately following the one that caused the error.
- Label_Name
Specifies a label in the code. The command line following the label is the next statement executed.
Description
RESUME is used at the end of an error-handling routine to resume program execution.
Example
This script will attempt to open several forms. If a form does not exist, the run-time error will cause the missing_form error handler to be run. After an error, execution will continue at the next statement.
on error goto missing_form
:form.view("customer")
:form.view("invoices")
:form.view("payments")
end
missing_form:
resume nextSee Also