Returns a string created by joining a number of substrings contained in an array.
Function Join( ByVal SourceArray() As { Object | String }, Optional ByVal Delimiter As String = " " ) As String
Exception type | Error number | Condition |
---|---|---|
5 | SourceArray() is not one dimensional. |
The following example demonstrates use of the Join function.
Dim myItem(2) As String
Dim myShoppingList As String
myItem(0) = "Pickle"
myItem(1) = "Pineapple"
myItem(2) = "Papaya"
' Returns "Pickle, Pineapple, Papaya"
myShoppingList = Join(myItem, ", ")
Split Function |