EuroDisplay.FormatAltMoney

Ee798379.c++_on(en-US,CS.10).gifEe798379.vb_off(en-US,CS.10).gif

Use this method to create a string representation of a currency Variant, based on the alternate locale identifier and the alternate currency symbol string.

Definition

Function FormatAltMoney(vtConvMoney As Variant) As String

Parameters

vtConvMoney

A currency Variant that contains the monetary value to convert.

Return Values

If this method completes successfully, it returns a String that contains the string representation of the specified currency Variant.

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

' oEuroDisp is a Commerce.EuroDisplay object
' vTest is a Currency Variant
' vResult is a String
vTest = "$ 20.00"
vResult = oEuroDisp.FormatAltMoney (vTest)
' In the preceding example, if the Alt Currency symbol string
' is "$" and the Alt locale identifier is 1033, vResult will 
' contain the string, "$ 20.00"

See Also

EuroDisplay Object

EuroDisplay.ConvertAltStringToCurr

EuroDisplay.FormatBaseMoney


All rights reserved.