VarAsError¶
Create an error-typed variant.
Declaration¶
Source position: variants.pp line 120
function VarAsError(AResult: HRESULT) : Variant;
Arguments¶
| Name | Description |
|---|---|
| AResult | Error code to store in the variant/. |
Function result¶
The new error-typed variant.
Description¶
VarAsError creates an error-typed variant with value aResult.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| SetClearVarToEmptyParam | Create an error variant with value VAR_PARAMNOTFOUND. |
| VarIsError | Check if the variant has type varError. |