EuroDisplay.ConvertMoney Method (PIA)

Use this method to convert the specified currency Object (representing a monetary value in the base currency) to a currency Object representing a monetary value in the alternate currency, using the initialized conversion rate.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders 
…
Public Function ConvertMoney(vtCurrVal As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public object EuroDisplay.ConvertMoney(objectvtCurrVal);

Parameters

[Visual Basic .NET]

  • vtCurrVal
    An Object that contains the monetary value in the base currency.

[C#]

  • vtCurrVal
    A currency object representing a monetary value in the base currency.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a currency Object representing a monetary value in the alternate currency.

[C#] This method returns an object representing a monetary value in the alternate currency.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

Dim Result
EuroDisplay ed = New EuroDisplay()
ed.Initialize ("$$",1033,"FF",1036, 2)
Result = EuroDisplay.ConvertMoney(100) 
Response.Write "Converted $100 from $ to F ($1 = 2F) : " & Result & "<P>" 

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: eurodisplib (in eurodisplib.dll)

See Also

EuroDisplay Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.