Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Array Objects > Array splice() MethodThis method removes a specified number of elements from the array, starting at a given index, and returns an array of those removed elements. The method then rearranges the remaining elements as necessary to insert a specified number of new elements at the start index of the removed elements. The entire process effectively splices new elements into the array. SyntaxarrayName.splice(start, deleteCount[, element1, element2, . . . elementn]) ReturnsAn array consisting of the elements that are removed from the original array UsageThis method splices in any supplied elements in place of any elements deleted. Beginning at index start, deleteCount elements are first deleted from the array and inserted into the newly created return array in the same order. The elements of the current array object are then adjusted to make room for the all of the elements passed to this method. The remaining arguments are then inserted sequentially in the space created in the current array object. Examplevar a = new Array( 1, 2, 3, 4, 5 ); |
Siebel eScript Language Reference |