Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Commands > Array Objects >
join() Method
The join() method creates a string of array elements.
Syntax
arrayName.join([separatorString])
Parameter Description separatorString A string of characters to be placed between consecutive elements of the array; if not specified, a comma is usedReturns
A string containing the elements of the specified array, separated either by commas or by instances of separatorString.
Usage
By default, the array elements are separated by commas. The order in the array is the order used for the join() method. The following fragment sets the value of string to
"3,5,6,3"
. You can use another string to separate the array elements by passing it as an optional parameter to the join method.var a = new Array(3, 5, 6, 3);
var string = a.join();Example
This example creates the string
"3*/*5*/*6*/*3"
:var a = new Array(3, 5, 6, 3);
var string = a.join("*/*");
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference Published: 18 April 2003 |