From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
| This item was deprecated in version 2019r2.
Please use String.FromArray as a replacement.
result = Join(sourceArray [,delimiter])
|result||String||String that results from concatenating all the elements of sourceArray, optionally separated by delimiter.|
|sourceArray||String array||Source array whose elements will be used to create result.|
|delimiter||String||Optional delimiter used in separating the elements of sourceArray when creating result. The default is one space.|
Join takes a one-dimensional String array and concatenates the individual elements into a single String variable. You can pass an optional delimiter which will be inserted between the fields in the resulting String. If no delimiter is passed, a single space will be used as the delimiter.
This example concatenates a three-element array into the string "Anthony,Aardvark,Accountant".
Dim combinedNames As String = Join(names, ",") // returns "Anthony,Aardvark,Accountant"