LastError Property  
 

Gets and sets the last error code.

Syntax

object.LastError [= lasterror ]

Remarks

The LastError property can be read to determine the last error that occurred for this instance of the object. If a value is assigned to this property, it must either be zero (to clear the error) or a valid error code.

Data Type

Integer (Int32)

See Also

OnError Event