EuroDisplay.ConvertBaseStringToCurr
Use this method to convert a string representation of a monetary value in the currency specified by the base locale identifier to a currency Variant.
Definition
Function ConvertBaseStringToCurr(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.ConvertBaseStringToCurr("99,333.53886")
' In the preceding example, the variable vResult is
' internally rounded to 99333.5389