IDataFunctions::Money
The IDataFunctions::Money method converts the specified currency value to a string VARIANT, based on the specified locale.
Syntax
HRESULT Money(
long lMoney,// in
VARIANT vtLocale,// in
VARIANT *pvarRet
);
Parameters
- lMoney
- A long integer that contains the value to convert.
- vtLocale
- A VARIANT that specifies the locale to use to perform the conversion.
- pvarRet
- If successful, a pointer to a VARIANT that contains the converted value. Money initializes this VARIANT's vt member to VT_BSTR, and stores the converted value in its pbstrVal member. If unsuccessful, Float sets pvarRet to NULL.
Include
<commerce.h>
Return Values
Value |
Description |
S_OK |
The conversion was successful. If the conversion fails, Float returns an HRESULT indicating failure (for example, E_FAIL), and pvarRet is set to NULL. |
Related Topic
IDataFunctions::ConvertMoneyString
© 1997-2000 Microsoft Corporation. All rights reserved.