Method: Join for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Join for VBS
Method: Join for VBS
Joins a number of character strings contained in an array to form a text.
vJoin = Object.Join(list, [delimiter])
| Object | VBS Object with this method. You do not need to specify this object. |
| list | Variant Specifies a one-dimensional array that contains character strings. |
| [delimiter] | Variant Specifies the delimiter between the character strings in the returned text. If you do not specify a value, the Join method uses a blank (" "). |
| vJoin | Variant Receives the joined text. |
The following example joins a text from various character strings:
Dim MyArray MyArray = Array ("This","is","an","example") Call MsgBox(Join(MyArray)) ' Returns "This is an example"