Skip to content

VarClear

Clear the variant value

Declaration

Source position: variants.pp line 106

  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
VarIsClear Check if a variant is clear
VarIsError Check if the variant has type varError