RAD Studio VCL Reference
|
Empties a Variant, so that it is unassigned.
procedure VariantClear(var V: Variant);
VariantClear(Variant V);
Calling VariantClear is equivalent to assigning the Unassigned constant to the Variant. After calling VariantClear, the VarIsEmpty function returns true, and the VarType function returns varEmpty. Using an unassigned variant in an expression causes an exception to be thrown. Likewise, if you attempt to convert an unassigned Variant to another type (using VariantCast), an exception is thrown.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|