VarResultCheck
Check the result of an operation and raise exception if not OK.
Declaration
Source position: variants.pp line 312
  procedure VarResultCheck(AResult: HRESULT);
  procedure VarResultCheck(AResult: HRESULT; ASourceType: tvartype; 
                          ADestType: tvartype);
Description
VarResultCheck checks the result aResult. If it difers from VAR_OK then an appropriate exception is raised based on the error code. If a source and destination type ASourceType and aDestType are specified they are included in the error message.
See also
| Name | Description | 
|---|---|
| VarArrayLockedError | Raise an EVariantArrayLockedError error | 
| VarBadIndexError | Raise an EVariantBadIndexError error | 
| VarInvalidNullOp | Raise an EVariantInvalidOpError error | 
| VarInvalidOp | Raise a EVariantInvalidOpError error | 
| VarOverflowError | Raise an EVariantOverflowError error. |