HandleError Subroutine

The global error handler routine. It displays the error number and its description when an error occurs.

Syntax

HandleError([intErrorMode])

Properties

The HandleError subroutine syntax has this part:

Part

Description

intErrorMode

Integer. (Optional). The error mode.
0 (default) – Allows the subroutines to provide the error messages. Errors are displayed in the form of a message box. If no entry is made for the intErrorMode parameter, the default is used.

1 – Allows the user to handle the error messages. Errors in the subroutines are passed back to the calling routine for handling.

2  – Writes errors to all destinations. No error messages display. Instead, the errors are written to all iFIX destinations, including the Alarm History window destinations using SendOperatorMessage.

 

Example