Any of the single dimension array types listed above can be used to define an array of
n-dimensions. A 2-dimensional array is simply a collection of 1-dimensional arrays; a
3-dimensional array is a collection of 2-dimensional arrays, and so forth.
Num1D[1]// refers to the 1st elementNum2D[1]// refers to the 1st rowNum2D[1][1]// refers to the 1st element of the 1st rowNum3D[1]// refers to the 1st tableNum3D[1][1]// refers to the 1st row of the 1st tableNum3D[1][1][1]// refers to the 1st element of the 1st row of the 1st table
LENGTH_ARRAY and MAX_LENGTH_ARRAY are used to determine
the effective and maximum lengths of multidimensional arrays as shown in the following examples.
INTEGERLenINTEGERMy3DArray[5][3][4]Len=MAX_LENGTH_ARRAY(My3Darray)// Len = 5Len=MAX_LENGTH_ARRAY(My3Darray[1])// Len = 3Len=MAX_LENGTH_ARRAY(My3Darray[1][1])// Len = 4