Sign in Join
FPDoc Onlineexperiment

VarAsError function

In unit Variants

Create an error-typed variant.

Declaration

pascal
function VarAsError(AResult: HRESULT): Variant

Arguments

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.