Join Procedure

Version 7

Returns a string created by joining a number of substrings contained in an array (in a variant).

Syntax

[ sStr = ] Join ( vrStrArray, [bsDelimeter] )

The Join procedure syntax has the following parts:

Name

Type

Description

sStr

BString

Return String: after joining a number of substrings contained in the array.

vrStrArray

Val Varaint

Variant containing a string array to be joined.

bsDelimeter

[Val] BString = " "

Optional. String character used to separate the substrings in the returned string. If omitted, the space character (" ") is used. If delimiter is a zero-length string, all items in the list are concatenated with no delimiters.

Comments

For any invalid input, Join returns an empty string.

Example

The following example uses Join to join an array of substrings in a variant, vr:

 

as[0]="ATEasy"

as[1]="is"

as[2]="Easy"

vr=as

print Join(vr)

which prints"

 

ATEasy is Easy

See Also

Filter, Split, Replace