Skip to content

VarAsError

Create an error-typed variant

Declaration

Source position: variants.pp line 113

  function VarAsError(AResult: HRESULT) : 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