Complex2Buffer - Create a buffer string from complex data
|
Top |
<bufferData> := Complex2Buffer( <anyData>, [<lDontConvertSimpleTypes>], [<nStringType>] ) <anyData>
The data to be assembled in a data buffer, normally an array. This buffer can be passed to an API function requesting the pointer to some data.
<lDontConvertSimpleTypes>
This flag controls the handling of 'simple' data types. This flag will normally be .T. (which is the default) when Complex2Buffer is called from a program. This is the table of simple types for <anyData> and the values returned for them if this flag is .T.:
<nStringType>
This parameter's value determines the treatment of all strings contained in <anyData>. See Cockpit string types for details. The default is STRINGTYPE_BINARY. A string representing the data buffer created from the data passed in <anyData>. Complex2Buffer creates a data buffer from complex data passed in. This passed in data can be a mixture of strings, structures, numeric values, logicals or objects in linear and nested arrays. Arrays are traversed from first to last element, nested arrays are traversed as they are encountered. The result is a buffer string containing all data found traversing and converting <anyData>. If no special handling is requested (see the <lDontConvertSimpleTypes> parameter), the data found in <anyData> is stringified and added to the returned buffer string according to this table:
Core Library: cckptcor.lib / cckptcor.dll Header: StringTypes.ch
|