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

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

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

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

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

 

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