IDataFunctions::Number
The Number method converts a long integer to a string VARIANT, based on the specified locale.
HRESULT Number(
long Number,// in
VARIANT vtLocale,// in
VARIANT *pvarRet
);
Parameters
-
Number
-
A long integer which contains the number to convert.
-
vtLocale
-
A VARIANT that specifies the locale on which to base the conversion. If this VARIANT is empty (VT_EMPTY) or NULL (VT_NULL), Number uses the locale specified by a previous call to put_Locale.
-
pvarRet
-
If successful, a pointer to a VARIANT that contains the converted value. Number initializes this VARIANT’s vt member to VT_BSTR, and stores the converted value in its pbstrVal member. If unsuccessful, Number sets pvarRet to NULL.
Include
<commerce.h>
Return Values
Value |
Description |
|
S_OK |
The conversion was successful. If the conversion fails, pvarRet evaluates to NULL. |
Related Topics
© 1997-1998 Microsoft Corporation. All rights reserved.