From RAD Studio API Documentation
Jump to: navigation, search


constructor CreateHResult(AResult: HRESULT; const AMessage: string = '');


Type Visibility Source Unit Parent
constructor public System.VarUtils.pas System.VarUtils ESafeArrayError


Creates an instance of ESafeArrayError.

CreateHResult is used to create an instance of ESafeArrayError.

The AResult parameter specifies the error code of the exception, while the AMessage parameter represents the message to display when raising the exception.

Note: After a call to CreateHResult, the ErrorCode property is set to the value of AResult.

See Also