EuroDisplay.ConvertBaseStringToCurr Method (PIA)
Use this method to convert a string representation of a monetary value in the currency specified by the base locale identifier to a currency object.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Orders
…
Public Function ConvertBaseStringToCurr(vtMoneyString As Object) As Object
[C#]
using Microsoft.CommerceServer.Interop.Orders;
…
public object EuroDisplay.ConvertBaseStringToCurr(objectvtMoneyString);
Parameters
[Visual Basic .NET]
- vtMoneyString
An Object that contains the currency string to convert.
[C#]
- vtMoneyString
A object that contains the currency string to convert.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns a currency Object that contains the converted currency information.
[C#] This method returns an object containing the converted currency information.
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
' oEuroDisp is a Commerce.EuroDisplay object
' oResult is an Object
oResult = oEuroDisp.ConvertBaseStringToCurr("99,333.53886")
' In the preceding example, the variable oResult is
' internally rounded to 99333.5389
Requirements
Namespace: Microsoft.CommerceServer.Interop.Orders
Platforms: Windows 2000, Windows Server 2003
Assembly: eurodisplib (in eurodisplib.dll)
See Also
EuroDisplay.ConvertAltStringToCurr
Copyright © 2005 Microsoft Corporation.
All rights reserved.