LastError Property  
 

Returns the last error that occurred for the control.

Syntax

object.LastError [= value ]

Remarks

The LastError property can be used to determine the last error that occurred for the control. If a value is assigned to this property, it should either be zero to clear the current error or a valid error code for the control. Refer to the list of error codes for information about specific errors.

Data Type

Integer (Int32)

See Also

LastErrorString Property, OnError Event