APGen Documentation Previous Topic: Script.Arguments Collection Next Topic: Script.Filename Parent Topic: Script Object    Script Object
Script.Error Event
See Also:

The Script.Error event is fired when an error occurs while running the script.

Syntax

Generic:

Error(oAPGError)

Visual Basic:

Private WithEvents oScript As APGenLib.APGInnerScript

Private Sub oScript_Error(ByVal oAPGError As APGenLib.IAPGError)
    . . .
End Sub

Parameters

oAPGError An APGError object.

Notes

For an example, see the Script Error Events topic.  The Script.OnError property provides equivalent functionality, and may be easier to use for error handling with script code.

Applies To

Script Object