IsTrapped - cBaseErrorHandler
Determines whether an error belongs to the set of trapped errors
Type: Function
Return Data Type: Boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| iError | Integer | Error number |
Syntax
Function IsTrapped Integer iError Returns Boolean
Call Example
Get IsTrapped iError to BooleanVariable
Description
Call IsTrapped to test whether a particular error number is trapped (and reported) by the error handler.
Sample
This sample tests whether the error handler is trapping error number 300.
If (IsTrapped(ghoErrorHandler, 300)) Begin
// do something
End