Siebel eScript Language Reference > Siebel eScript Commands > Array Objects >

Array push() Method


This method appends new elements to the end of an array.

Syntax

arrayName.push([element1,element2, ..., elementn])

Parameter
Description

element1, element2, . . . elementn

A list of elements to append to the array in the order given

Returns

The length of the array after the new elements are appended

Usage

This method appends the elements provided as arguments to the end of the array, in the order that they appear. The length of the current Array object is adjusted to reflect the change.

Example

var a = new Array(1,2);
TheApplication().RaiseErrorText(a.push(5,6) + " " + a);
// Displays 4  1,2,5,6, the length and the new array.

Siebel eScript Language Reference Copyright © 2007, Oracle. All rights reserved.