RESUME

Syntax

RESUME 0
RESUME NEXT
RESUME Label_Name

Argument

Description

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 next

See Also

Language Reference, Reserved Words, Error Functions

Supported By

Alpha Five Version 5 and Above