comp • gb • string[] • join

String[].Join (gb)

Function Join ( [ Separator As String, Escape As String ] ) As String

Concatenates the strings stored in the arrays.

  • Separator is a string that will be inserted between each string of the array. The default separator is a comma.

  • Escape is used for enclosing each string. If Escape contains two characters, then the first is the starting escape character, and the second the ending one.

Escape characters inside strings are duplicated.

This function is the contrary of the Split subroutine.


Dim aClaim As String[]

aClaim = ["Gambas", "Almost", "Means", "Basic", "!"]
Print aClaim.Join("/")
Print aClaim.Join(",", "!")

See also