StringJoin - method of the Pm object
Returns a string created by merging the substrings contained in 1-dimensional array.
String StringJoin(Array aStrings, String sDelimiter)
|aStrings||(Array) 1-dimensional array containing substrings to be merged. The values of different data types are converted to strings.|
|sDelimiter||(String) Separator, i.e. character used to identify substring boundaries in the resulting string. (" ", ",", ";", ...).|
There is a list of values separated by comma , in the s1 string. The list is desintegrated into a 1-dimensional array and then integrated back together, but this time with ; semicolon acting as value separator.
var s1 = "2,4,6,8,10";
var a = Pm.StringSplit(s1, " ");
var s2 = Pm.StringJoin(a, ";"); //s2 contains "2;4;6;8;10"