COleCurrency::operator =

These overloaded assignment operators 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.

At a Glance

Header file: Afxdisp.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

const COleCurrency& operator =( CURRENCY cySrc );

const COleCurrency& operator =( const COleCurrency& curSrc );

const COleCurrency& operator =( const VARIANT& varSrc );

See Also

COleCurrency::COleCurrency, COleCurrency::SetCurrency, COleCurrency::GetStatus, CURRENCY, VARIANT