RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.OleError Function

Raises an EOleSysError exception.

Pascal
procedure OleError(ErrorCode: HResult);
C++
OleError(HRESULT ErrorCode);

ComObj

OleError raises an EOleSysError exception from an error code passed in as the ErrorCode parameter. 

OleError is used internally to catch failed function calls by throwing an EOleSysError exception that indicates the cause of the failure as an error code. Unlike the OleCheck procedure, which checks its parameter to determine whether it represents an error, OleError always raises an exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!