Name
ArrayToStr -- convert code point array to string (V6.0)
Synopsis
s$ = ArrayToStr(t[, encoding])
Function
This function reads all code points contained in the table t, appends them to a string and returns this string. ArrayToStr() will stop reading values from t once it encounters a code point of 0 (string terminator) or the end of the table.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

To convert strings into arrays, you can use the function StrToArray(). See StrToArray for details.

Inputs
t
a table containing an arbitrary number of code points
encoding
optional: character encoding to use (defaults to default string encoding) (V7.0)
Results
s$
string made up of the code points in the table
Example
s$ = ArrayToStr({'H', 'e', 'l', 'l', 'o'})
DebugPrint(s$)
Prints "Hello".

Show TOC