Promotic

Join - function of language VBScript

Description:
Returns a string created by joining a number of substrings contained in the array.
In the PROMOTIC system it is better to use the Pm.StringJoin method.
Syntax:
String Join(Array list, [String delimiter])
Parameters:
list(Array) 1-dimensional array containing substrings to be joined.
delimiter[optional] (String) String character used to separate the substrings in the returned string.
If not set, then the space character (" ") is used.
If delimiter is a empty string, then all items in the list are concatenated with no delimiters.
Example:
VBScriptSelect and copy to clipboard

Dim sString, arr( 3)
arr(0) = "Mr."
arr(1) = "John "
arr(2) = "Doe "
arr(3) = "III"
sString = Join(arr)   ' sString contains "Mr. John Doe III"
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.