Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Join Function

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

Syntax: VBScript Join Function

Join(list[, delimiter])

Arguments: VBScript Join Function

list

A one-dimensional array containing substrings to be joined. Required.

delimiter

A 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. Optional.

Remarks: VBScript Join Function

The following example uses the Join function to join the substrings of MyArray:

Dim MyString

Dim MyArray(3)

MyArray(0) = "Mr."

MyArray(1) = "John "

MyArray(2) = "Doe "

MyArray(3) = "III"

MyString = Join(MyArray) ' MyString contains "Mr. John Doe III".

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.