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

Converts the System::Variant to an unsigned char value. And returns a reference.

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

The System::Variant::unsigned char* conversion operator returns a reference to an unsigned char that is a conversion of this System::Variant::Variant. System::Variant::unsigned char* 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 char* operator replaces the Byte* operator. 

 

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