DVARIANT.PutDecFromStrmethod
Initializes DVARIANT as VT_DECIMAL from a string.
Syntax
FUNCTION PutDecFromStr (BYVAL pwszIn AS WSTRING PTR, BYVAL lcid AS LCID = 0, BYVAL dwFlags AS ULONG = 0) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pwszIn | The string value to convert. | |
lcid | The locale identifier. | |
dwFlags | One or more of the following flags. LOCALE_NOUSEROVERRIDE : Uses the system default locale settings, rather than custom locale settings. VAR_TIMEVALUEONLY : Omits the date portion of a VT_DATE and returns only the time. Applies to conversions to or from dates. VAR_DATEVALUEONLY : Omits the time portion of a VT_DATE and returns only the date. Applies to conversions to or from dates. |
Return value
This function can return one of these values.
Description
Initializes DVARIANT as VT_DECIMAL from a string.
Remarks
Creates a VT_DECIMAL variant.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:1425
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class