Ignore Statement

Ignores a non-fatal run-time (recoverable) error and resumes execution of the next statement.

Syntax

Ignore

Comments

This statement can be used only in error-handling code (Catch blocks and OnError events). Execution of this statement outside of error-handling code or if the error being handled is not recoverable, results in a run-time error. A valid Ignore statement causes execution to resume at the start of the next statement after the one which caused the error. If the error occurred inside a Try block, execution resumes immediately after the EndTry statement in the Try-Catch-EndTry compound statement with the Catch statement which caught the error.

Example

Procedure OnError

{

TestStatus=ERR    ! set teststatus to error

! display the error

Print "Error "GetErrorNum();" ";GetErrorString()

! resume execution to the next statement

Ignore

}

See Also

Error Statement, Comment, Retry, Try