EuroDisplay.FormatBaseMoney

Ee798335.c++_on(en-US,CS.10).gifEe798335.vb_off(en-US,CS.10).gif

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

Definition

Function FormatBaseMoney(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 = "$ 40.08"
vResult = oEuroDisp.FormatBaseMoney (vTest)
' In the preceding example, if the Base Currency symbol string
' is "$" and the Base locale identifier is 1033, vResult will 
' contain the string, "$ 40.08"

See Also

EuroDisplay Object

EuroDisplay.ConvertBaseStringToCurr

EuroDisplay.FormatAltMoney


All rights reserved.