Which function is used to get a combined string from an array of string in VBScript?
Join Function
The Join function returns a string that consists of a number of substrings in an array.
Join Function Syntax is as below:
Join(list[,delimiter])
list - List is a one-dimensional array that contains the substrings to be joined and it is required.
delimiter - The character(s) used to separate the substrings in the returned string. Default is the space character and it is optional.
Join Function Example is as below:
Separating items in an array, with and without using the delimeter parameter:
<%
Courses=Array("HTML","CSS","HTML5","jQuery","Java Script","ReactJS",".Net")
response.write(Join(Courses) & "<br />")
response.write(Join(Courses,", ") & "<br />")
response.write(Join(Courses," ### "))
%>
The output of the above code will be as follows:
HTML CSS HTML5 jQuery Java Script ReactJS .Net
HTML, CSS, HTML5, jQuery, Java Script, ReactJS, .Net
HTML ### CSS ### HTML5 ### jQuery ### Java Script ### ReactJS ### .Net
Which function is used to split a string into an array in VBScript?
Which function is used to get the largest subscript of an array in VBScript?
Which function is used to get the smallest subscript of an array in VBScript?
How will you create dynamic-array variables in VBScript?
Which function is used to compare two strings in VBScript?