qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ARRAY Keyword
  Keywords Contents Index                                   Back
 
  ARRAY[<index range>] OF <type>
 
  Description
 
    An array is a collection of values of the same type. The values
    are randomly accessible by an index.
 
  The <index range> Expression
 
    An index can be a range of any ordinal type. For example,
 
       TYPE
           an_index = 0 .. 10;
           an_array = ARRAY[ an_index ] OF Integer;
 
    Pascal allows the construction of  multidimensional arrays.
    To do so, specify more than one index range within the square
    brackets. Separate multiple index ranges with commas. For example,
 
       TYPE
           first_dim  = 0 .. 10;
           second_dim = 0 .. 5;
           an_array   = ARRAY[ first_dim, second_dim ] OF Integer;
 
  See also:  Data Types Hierarchy, RECORD