|
Join function
this joins a number of substrings in an array
and returns a string , the second parameter between the "
" is the delimiter and this is used to seperate the substrings
, this is optional .
Code :
<%
Dim arrColours(4)
'our array
arrColours(0) = "red"
arrColours(1) = "blue"
arrColours(2) = "green"
arrColours(3) = "orange"
'join the items using ,
Response.Write Join(arrColours, ",") & "<br>"
'join the items using /
Response.Write Join(arrColours, "/") & "<br>"
%>
|