RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::short Operator

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

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

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

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!