APGen Documentation Previous Topic: APGError.Script Next Topic: APGScript Object Parent Topic: APGError Object    APGError Object
APGError.Clear()
See Also:

The APGError.Clear() method clears all error information from the APGError object.

Syntax

VBScript:

oAPGError.Clear

JScript:

oAPGError.Clear();

Object

oAPGError An APGError object.

Notes

In addition to clearing all information from the APGError object, Clear() sets the APGError.Handled property to True.  This prevents later error handlers (in the error handler chain) from being called.  It would be erroneous to call the default error handler after all error information is cleared from the APGError object.

A side effect of calling APGError.Clear() is that no error is returned from APGScript.Run() or APGScript.RunArgs().  The error is, in effect, cancelled.

Applies To

APGError Object