s$ = ItemJoin$(l$(){,d$})

This function takes a string array and converts it to a delimited string list. Only one dimensional string arrays may be used here. As with all the delimited string functions the delimiter character (d$) is optional and will default to a comma if not specified.

The first item in a delimited string is item zero. This is to match item number to array indexes.

For example:

dim l$(4)
l$(0) = "zero"
l$(1) = "one"
l$(2) = "two"
l$(3) = "three"
l$(4) = "four"

s$ = ItemJoin$(l$())


s$ = "zero,one,two,three,four"

Since the delimiter character is not specified a comma is assumed to be the delimiter.

Delimited Strings

Become a Patron