Methods: VBScript Err Object
Clear Method
|
Clears every property settings.
|
Raise Method
|
Generate a run-time error.
|
• VBScript Err Object Clear Method
Syntax : Err.Clear
Clears all property settings of the Err object. Use Clear to clear explicitly the Err object after an error has been handled. It is essential, for instance, when you employ deferred error handling with On Error Resume Next. VBScript automatically calls the Clear method whenever any of the following statements are executed:
* On Error Resume Next
* Exit Sub
* Exit Function