EuroDisplay.ConvertAltStringToCurr

Ee823926.c++_on(en-US,CS.10).gifEe823926.vb_off(en-US,CS.10).gif

Use this method to convert a string representation of a monetary value in the currency specified by the alternate locale identifier to a currency Variant.

Definition

Function ConvertAltStringToCurr(vtMoneyString As Variant) As Variant

Parameters

vtMoneyString

A Variant that contains the currency string to convert.

Return Values

If this method completes successfully, it returns a currency Variant that contains the converted currency information.

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
' vResult is a Variant
vResult = oEuroDisp.ConvertAltStringToCurr("23,444.53886")
' In the preceding example, the variable vResult is 
' internally rounded to 23444.5389

See Also

EuroDisplay Object

EuroDisplay.ConvertBaseStringToCurr

EuroDisplay.FormatAltMoney


All rights reserved.