Converts a variant byte array to a string containing only ASCII chars.
The data returned by most methods and properties is in the form of a variant byte array however in many cases, it is necessary to transfer or store the results as a string. The ToString method allows this data to be converted so it can be easily transferred or stored and then converted back to a variant byte array using the FromString method so it can be used by the appropriate method or property later on.
Parameter | Description |
---|---|
vaData | The variant byte array to convert. |
Returns a string representing the converted byte array.
None
Declaration (DXceedBinaryEncoding) | Copy Code |
---|---|
HRESULT ToString( [in] VARIANT* vaData, [out,retval] BSTR* bstrResult ); |
Declaration (IXceedBinaryEncoding) | Copy Code |
---|---|
|
To convert the string back to a variant byte array, the FromString method must be used.