[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

#### 8.2.10.3 Array Types

    type
      array type identifier = array [index type] of element type

or

    type
      array type identifier = array [index type, ..., index type] of element type

The reserved word `array` defines an array type. index type has to be an ordinal type, subrange type or an enumerated type, where several index types, separated by commata, are allowed. element type is an arbitrary type. An element of an array is accessed by array type variable [index number]. The upper and lower index bounds can be determined by the intrinsic functions `High` and `Low`.

    type
      IntArray = array [1 .. 20] of Integer;
      Foo      = array [(Mo, Tu, We, Th, Fr, Sa, Su)] of Char;
      Bar      = array [0 .. 9, 'a' .. 'z', (Qux, Glork1, Fred)] of Real;
      Baz1     = array [1 .. 10] of IntArray;
      { equal (but declared differently): }
      Baz2     = array [1 .. 10, 1 .. 20] of Integer;

### See also

section 9.109 High, section 9.147 Low

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html