Get Array Length Method

The Get Array Length method returns the length of a dynamically created array. This method is unique to Siebel eScript. For more information, see Make Sure the JavaScript Interpreter Can Run a Function.

Note the following:

  • You can write code that uses the Get Array Length method only with a dynamically created array. You cannot use it with an array that is not created with the Array constructor and the new operator.

  • The length property is not available for a dynamically created array. A dynamically created array must use the Get Array Length method or the Set Array Length method when working with an array length.

  • If you work with an array that the array constructor and the new operator creates, then you must use the length property of the array.

For more information, see Set Array Length Method.

Format

getArrayLength(array[, minIndex])

The following table describes the arguments for the Get Array Length method.

Argument Description

array

The name of the array whose length this method must get.

minIndex

The index of the lowest element where this method starts counting.

The first element of an array is typically at index 0. If you specify the minIndex argument, then Siebel CRM uses it to set to the minimum index, which is zero or less.

Related Topics

For more information, see the following topics: