System.Variants.VarIsEmpty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarIsEmpty(const V: Variant): Boolean;

C++

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

Properties

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

Description

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