System.VarUtils.VariantClear

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function VariantClear; external oleaut name 'VariantClear';

C++

extern "C" HRESULT __stdcall VariantClear(TVarData &V);

Properties

Type Visibility Source Unit Parent
function external public
System.VarUtils.pas
System.VarUtils.hpp
System.VarUtils System.VarUtils

Description

Clears a variant.

VariantClear first clears the variant given through V and then it reinitializes it, using a call to VariantInit.

The possible return values of VariantClear are given in the following table, together with their meaning.



Value Meaning

VAR_OK

The operation was completed successfully.

VAR_BADVARTYPE

The variant type of the input parameter is not valid.

VAR_UNEXPECTED

An unexpected error occurred.



See Also