RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::Currency Operator

Converts the System::Variant::Variant to a Currency object.

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

The Currency conversion System::Variant::Currency returns a Currency or a reference to a Currency that is a conversion of this System::Variant::Variant. If the Currency* conversion is used, the System::Variant::Currency 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 EVariantError exception is thrown. 

 

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