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:

For more information, see the CURRENCY and VARIANT entries in the Win32 SDK OLE Programmer’s Reference.

Example

// set to 35.0050
COleCurrency cur1(35, 50);
COleCurrency cur2;

// operator= copies COleCurrency types
cur2 = cur1;
ASSERT(cur1 == cur2);

// can be used to assign a CURRENCY type, as well
CURRENCY cy;
cy.Hi = 0;
cy.Lo = 350050;
cy.int64 = 350050;

// perform assignment
COleCurrency cur3;
cur3 = cy;
ASSERT(cur3 == cur1);

COleCurrency OverviewClass MembersHierarchy Chart

See Also   COleCurrency::COleCurrency, COleCurrency::SetCurrency, COleCurrency::GetStatus