Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > Array Methods > Overview of Array Methods
The following example statements store values in an array: var array = new Array; Array elements can be noncontiguous. For example, an array can include the following items: An array typically starts at index 0. It does not typically start at index 1. Example of Using an ArrayAn array can use a number as an index, so it allows you to work with sequential data. For example, to keep track of how many jelly beans you eat each day, you can graph your jelly bean consumption at the end of the month. An array provides a solution for storing such data. For example: var April = new Array; In this example, one variable contains all the data. You can write code that examines the value of April[x] to determine how many jelly beans you ate on day x. For example: for(var x = 1; x < 32; x++) |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |