RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::bool Operator

Converts the System::Variant::Variant to a boolean value.

Pascal
operator bool;
C++
__fastcall operator bool() const;

This conversion System::Variant::bool returns a bool that is a conversion of this System::Variant::Variant

If the conversion operation is not possible because of an invalid variant type conversion, an ESystem::Variant::VariantError exception is thrown. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!