RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarIsNull Function

Indicates whether the specified variant is Null.

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

Variants

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

Note: Do not confuse a Null variant with an unassigned 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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!