s$ = Concat(table[, sep$, start, end])
start
to end
to a single string that is optionally delimited by the string specified
in sep$
. If start
and end
are not specified, they default to 0 and number
of table items minus one respectively, which means that by default all table strings
are concatenated. If sep$
is not specified, it will default to the empty string
which means that no separator will be put between the strings.
Please note that this function will only take strings at integer indices into account. Strings at non-integer indices will not be concatenated.
t = {"Hello", "this", "is", "a", "test!"} DebugPrint(Concat(t, " "))The code above concatenates all strings of the table and separates them by inserting a space character.