RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils.VariantClear Function

Clears a variant.

Pascal
function VariantClear(var V: TVarData): HRESULT; stdcall;
C++
__stdcall HRESULT VariantClear(TVarData V);

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 
The operation was completed successfully. 
The variant type of the input parameter is not valid. 
An unexpected error occurred. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!