RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::unsigned short Operator

Converts the System::Variant to an unsigned short value.

Pascal
operator unsigned short;
C++
__fastcall operator unsigned short() const;

The System::Variant::unsigned short conversion operator returns an unsigned short that is a conversion of this System::Variant.  

If the conversion operation is not possible because of an invalid variant type conversion, an EVariantError exception is thrown. The System::Variant::unsigned short operator replaces the WordBool operator. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!