Skip to content

VarClear

Clear the variant value.

Declaration

Source position: variants.pp line 113

procedure VarClear(var V: Variant);
procedure VarClear(var V: OleVariant);

Description

VarClear clears the variant, possibly freeing any memory taken by the value

Errors

None.

See also

Name Description
SetClearVarToEmptyParam Create an error variant with value VAR_PARAMNOTFOUND.
VarIsError Check if the variant has type varError.
VarIsClear Check if a variant is clear.