DIAdem Help

Method: Join for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Join for VBS

Joins a number of character strings contained in an array to form a text.

vJoin = Object.Join(list, [delimiter])
ObjectVBS
Object with this method. You do not need to specify this object.
listVariant
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 (" ").
vJoinVariant
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"

See Also

Objects Overview

Related Topics

Filter | InStr | InStrB | InStrRev | Join | LCase | Left | LeftB | Len | LenB | LTrim | Mid | MidB | Replace | Right | RightB | RTrim | Space | Split | StrComp | String | StrReverse | Trim | UCase