ASP Join Function

ASP Join Function

The Join function returns a string that consists of a number of substrings in an array.

Syntax
Join(list[,delimiter])

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”)
Response.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”)
Response.write(join(b,”, “))
Output:
Sunday, Monday, Wednesday

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.