EuroDisplay.ConvertMoney

Ee798449.c++_on(en-US,CS.10).gifEe798449.vb_off(en-US,CS.10).gif

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

Definition

Function ConvertMoney(vtCurrVal As Variant) As Variant

Parameters

vtCurrVal

A Variant that contains the monetary value in the base currency.

Return Values

If this method completes successfully, it returns a currency Variant representing a monetary value in the alternate currency.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

<%
Dim Result
Set MSCSEuroDisplay= Server.CreateObject("Commerce.EuroDisplay")
MSCSEuroDisplay.Initialize "$$",1033,"FF",1036, 2
Result = MSCSEuroDisplay.ConvertMoney(100) 
Response.Write "Converted $100 from $ to F ($1 = 2F) : " & Result & "<P>" 
%>

See Also

EuroDisplay Object


All rights reserved.