Use these overloaded assignment operators to copy the source currency value into this COleCurrency object.
COleCurrency ( cySrc ) constructs a COleCurrency object from a CURRENCY value.
COleCurrency& operator =( curSrc ) constructs a COleCurrency object from an existing COleCurrency object.
COleCurrency ( varSrc ) Attempts to convert a VARIANT structure or COleVariant object to a currency (VT_CY) value. If this conversion is successful, the converted value is copied into the new COleCurrency object. If it is not, the new COleCurrency object is initialized to zero.
const COleCurrency& operator =( CURRENCY cySrc );
const COleCurrency& operator =( const COleCurrency& curSrc );
const COleCurrency& operator =( const VARIANT& varSrc );
Header file: | Afxdisp.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
COleCurrency Overview, COleCurrency Operators, Automation Types, COleCurrency::COleCurrency, COleCurrency::SetCurrency, COleCurrency::GetStatus, CURRENCY, VARIANT