RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THandleObject.LastError Property

Indicates the Windows error code obtained from Handle.

Pascal
property LastError: Integer;
C++
__property int LastError;

Read LastError when an operation of the THandleObject fails. LastError returns the Windows error code that represents the reason for the failure. If no operation failed, LastError is 0. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!