ITcTypeInstance6::SetValueToString
Parses text according to the specified format into the binary representation of the type. If successful, a byte SAFEARRAY matching the size of the type is returned as VARIANT.
Signature
HRESULT SetValueToString(BSTR text, ULONG formatIdx, VARIANT* pvData);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
text |
BSTR |
[in] Text representation to be parsed. |
|
formatIdx |
ULONG |
[in, defaultvalue(0)] 0-based format index. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pvData |
VARIANT* |
[out, retval] Byte |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pvDataisNULL. -
ADS_E_INVALIDDATA:textcould not be converted to a valid binary representation of the type.
See also
- GetValueToString