APGen Documentation Previous Topic: APGScript.DisconnectEvents() Next Topic: APGScript.Wait() Parent Topic: APGScript Object    APGScript Object
APGScript.GetLastError()
See Also:

The GetLastError() method retrieves the APGError object for the last error that occurred in the script.

Syntax

VBScript:

Set oAPGError = oAPGScript.GetLastError

JScript:

oAPGError = oAPGScript.GetLastError();

Object

oAPGScript An APGScript object.

Return Value

oAPGError The APGError object for the last error that occurred in this script.

Notes

For an example, see the APGError object topic.

Applies To

APGScript Object