UCharArrayToWString

See Also: Array Functions, Array Variable Assignments, String Functions, Working with Arrays, StringToUCharArray, UCharArrayToString, WStringToUCharArray

Purpose

Returns a DataFlex WString which is a copy of the passed UChar array.

Return Type

WString

Syntax

UCharArrayToWString( {UCharArray} )

UCharArrayToWString( {UCharArray}[, {size} ])

UCharArrayToWString( {UCharArray}[, {size} [, {offset} ] )

Where:

What it Does

UCharArrayToWString returns a DataFlex WString which is a copy of the passed single-dimension UChar array containing UTF-16 data. Note that a UTF-16 string in a UChar array uses 2 or 4 array items per character.

If {size} is passed, only {size} number of characters of the array are copied to the WString.

If {size} and {offset} are passed, only {size} number of characters of the array are copied to the WString, starting at array item {offset} (0-based).