AppCtrlScript

MAY Computer

Help

ON ERROR

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Structures

See also  

Changes error handling for the current script (not only for the SUB currently processed). By default further script processing is canceled if an error occurs in the script. But this behaviour can be changed with this statement.

Syntax

ON ERROR RESUME[ NEXT]
ON ERROR RETURN
ON ERROR QUIT
ON ERROR BREAK
ON ERROR
<SubName>

Part

Description

ON ERROR RESUME[ NEXT] Continues with executing the script. Errors are ignored.
ON ERROR RETURN Current SUB is left if an error occured.
ON ERROR QUIT The complete rest of the script is canceled. No more line of code in the current script is processed.
ON ERROR BREAK The error(s) is/are immediately displayed to the user in a window. Then further script processing is canceled.
ON ERROR <SubName> The specified subroutine is called in error case and processing is continued.

 

Also understood: