Update cookies preferences
Promotic

StringJoin - method of the Pm object

Description:
Returns a string created by merging the substrings contained in 1-dimensional array.
Syntax:
String StringJoin(Array aStrings, String sDelimiter)
Parameters:
aStrings(Array) 1-dimensional array (PmArray object for JavaScript or Array data type for VBScript) containing substrings to be merged.
The values of different data types are converted into a text string.
sDelimiter(String) Separator, i.e. character used to identify substring boundaries in the resulting string.
Examples of separators:
"" = empty string - i.e. substrings will not be separated
" " = space
"," = comma
";" = semicolon
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example:
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.
JavaScriptVBScriptSelect and copy to clipboard

var s1 = "2,4,6,8,10";
var aStr = Pm.StringSplit(s1, ",");
var s2 = Pm.StringJoin(aStr, ";");   // s2 contains "2;4;6;8;10"

History:
Pm8.02.06: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringJoin
 
 
- Tan
© MICROSYS, spol. s r.o.