VBScript Join Function
Complete VBScript Reference
The Join function returns a string that consists of a number of substrings
in an array.
Syntax
| Parameter |
Description |
| list |
Required. A one-dimensional array that contains the
substrings to be joined |
| delimiter |
Optional. The character(s) used to separate the
substrings in the returned string. Default is the space character |
Example 1
Dim a(5),b
a(0)="Saturday"
a(1)="Sunday"
a(2)="Monday"
a(3)="Tuesday"
a(4)="Wednesday"
b=Filter(a,"n")
document.write(join(b))
Output:
Sunday Monday Wednesday
|
Example 2
Dim a(5),b
a(0)="Saturday"
a(1)="Sunday"
a(2)="Monday"
a(3)="Tuesday"
a(4)="Wednesday"
b=Filter(a,"n")
document.write(join(b,", "))
Output:
Sunday, Monday, Wednesday
|
Complete VBScript Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|