Join()

Top  Previous  Next

Join() - Join Array Elements with a String

Description

The Join() function converts the elements of an array into a string using a custom delimiter.

String = Join(Array[, Delimiter])

Returns a string containing the elements of the Array joined by the Delimiter. If the optional delimiter is omitted the space character (" ") is used.

Example

Dim Pieces(3)

Dim myResult

pieces(0) = "Piece 1"

pieces(1) = "Piece 2"

pieces(2) = "Piece 3"

 

myResult =  Join(pieces, "#")