Advanced COM LastError
LastError read-only property

Contains the last error id the last operation is unsuccessful.

Syntax:

variable = object.LastError 

Remarks:

All the methods (except Stop) of theCOMScriptThread object are designed to not raise an error but return Boolean indicator of the success. After each of them you can check this property to fetch the error text.

The error can be issued by the COMScriptThread object itself or the script engine if it occurred during the compilation or execution of the script.

Applies to: COMScriptThread object

newObjects Copyright 2001-2006 newObjects [ ]