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

Converts the System::Variant to an unsigned short value and returns a reference to the value.

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

The System::Variant::unsigned short* conversion operator returns a reference to an unsigned short that is a conversion of this System::Variant. System::Variant::unsigned short* sets the varByRef bit, meaning that the System::Variant contains a reference as opposed to a value.  

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!