Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringJoin - method of object Pm

Description:
Returns a string created by merging the substrings contained in 1-dimensional array.
Syntax:
StringJoin(aStrings As Array, sDelimiter As String) As String
Calling:
string = Pm.StringJoin(aStrings, sDelimiter)
Parameters:
aStrings(Array) 1-dimensional array containing substrings to be merged. The walues of different data types are converted to strings.
sDelimiter(String) Separator, i.e. character used to identify substring boundaries in the resulting string. (" ", ",", ";", ...).
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example:
There is a list of values seoarated 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.
Dim s1, s2, a
s1 = "2,4,6,8,10"
a = Pm.StringSplit(s1, ",")
s2 = Pm.StringJoin(a, ";")  ' s2 contains "2;4;6;8;10"
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringJoin
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice