RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarIsClear Function

Indicates whether the specified variant has an undefined value.

Pascal
function VarIsClear(const V: Variant): Boolean;
C++
Boolean VarIsClear(const Variant V);

VarIsClear returns true if the given variant's value is undefined. The value can be undefined for any of several reasons: 

The System::Variant may have had its value set to Unassigned

The System::Variant's value may be an interface type that has been set to nil (Delphi) or NULL (C++). 

The System::Variant may be a custom variant that returns true from its IsClear method. 

In all other cases, the function result is false.

Note: Do not confuse an unassigned variant with a Null variant. A Null variant is still assigned, but has the value Null. Unlike unassigned variants, Null variants can be used in expressions and can be converted to other types of variants.
 

 

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