COleCurrency::operator =
const COleCurrency& operator =( CURRENCY cySrc );
const COleCurrency& operator =( const COleCurrency& curSrc );
const COleCurrency& operator =( const VARIANT& varSrc );
Remarks
These overloaded assignment operators copy the source currency value into this COleCurrency object. A brief description of each operator follows:
-
operator =( cySrc ) The CURRENCY value is copied into the COleCurrency object and its status is set to valid.
-
operator =( curSrc ) The value and status of the operand, an existing COleCurrency object are copied into this COleCurrency object.
-
operator =( varSrc ) If the conversion of the VARIANT value (or COleVariant object) to a currency (VT_CY) is successful, the converted value is copied into this COleCurrency object and its status is set to valid. If the conversion is not successful, the value of the COleCurrency object is set to 0 and its status to invalid.
For more information, see the CURRENCY and VARIANT entries in the Win32 SDK OLE Programmer’s Reference.
COleCurrency Overview | Class Members | Hierarchy Chart
See Also COleCurrency::COleCurrency, COleCurrency::SetCurrency, COleCurrency::GetStatus