Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL Programmers Guide > ESL Language Elements > Values

Defining and Referencing Groups Arrays

Scroll Prev Top Next More

An array is a group of variables or constants, all accessed by the same name but with different subscripts. An array element is used like a regular string, integer, floating point, or boolean variable or constant, except that you cannot append anything to an array element. The size of an array cannot exceed 2Gbytes. (See Array Definition and Reference in the Reference Guide for information on array sizes.)

 

When defining an array, you must specify the data type, the array name, and the range of permissible subscripts (dimensions) of the array. The subscripts for arrays are always surrounded by brackets

[ ]. In the example:

 

integer SalesGraph[2,3]

 

integer is the data type, SalesGraph is the array name, and [2,3]

defines the dimensions of the array. Thus:

 

The array is two-dimensional.

The first dimension has two elements.

The second dimension has three elements.

The array contains a total of six elements (2*3).

 

Specifying Dimensions in an Array Definition

Specifying Elements in an Array Definition

Global Variable Arrays

Referencing Elements in Arrays

Resizing an Array