From RAD Studio API Documentation
Jump to: navigation, search


function VarIsEmpty(const V: Variant): Boolean;


extern DELPHI_PACKAGE bool __fastcall VarIsEmpty(const System::Variant &V);


Type Visibility Source Unit Parent
function public
System.Variants System.Variants


Indicates whether the specified variant is unassigned.

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 Variant that represents an interface has had the interface pointer cleared or when a custom 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.

See Also