Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Array Objects > The Array Constructor in Siebel eScriptLike other objects, arrays are created using the This line initializes variable You can pass elements to the Array() function, which creates an array containing the parameters passed. The following example creates an array with six elements. var c = new Array(5, 4, 3, 2, 1, "blast off"); You can also create arrays dynamically. If you refer to a variable with an index in brackets, the variable becomes an array. Arrays created in this manner cannot use the methods and properties described in the next section, so use the Array() constructor function to create arrays. |
Siebel eScript Language Reference |