Raises an exception if a specified variant's value is Unassigned.
procedure VarCheckEmpty(const V: Variant);
VarCheckEmpty(const Variant V);
Variants
Call VarCheckEmpty when your code requires that a Variant have a value, and you want to raise an exception if it doesn't. VarCheckEmpty checks whether the Variant specified by V has a value of Unassigned. If so, it raises an EVariantTypeMismatchError exception.
To check whether the Variant is Unassigned without raising an exception, use the VarIsEmpty function instead. To check whether the Variant's value is undefined, use the VarIsClear function instead.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|