[next] [previous] [contents]

  9.1.1 Grouping RECORD Components
  A RECORD component can consist of a named group of
  instances, identified with the keyword GROUP. You use
  GROUP to refer to a collection of RECORD components, or
  to create an array of components that have different data
  types. The GROUP name can be followed by a list of up-
  per and lower bounds, which define an array of the GROUP
  components. GROUP is valid only within a RECORD block.

  The declarations between the GROUP statement and the
  END GROUP statement are called a GROUP block.

  The following example declares a RECORD template of data
  type Yacht . Yacht is made up of two groups: Type_of_yacht
  and Specifications . Each of these groups is composed of el-
  ementary RECORD components. BASIC also allows groups
  within other groups.
  
EXAMPLE: Click to display example.