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 SAFEARRAY containing the binary representation of the value.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also