RAD Studio VCL Reference
Variants.VarIsEmpty Function

Indicates whether the specified variant is unassigned.

function VarIsEmpty(const V: Variant): Boolean;
Boolean VarIsEmpty(const Variant V);

VarIsEmpty returns true if the given variant contains the value Unassigned. If the variant contains any other value, the function result is false.

Note: VarIsEmpty does not indicate when a System::Variant that represents an interface has had the interface pointer cleared or when a custom System::Variant is clear. If either of these situations may exist, use the VarIsClear method instead.
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!