comp.lang.ada
 help / color / mirror / Atom feed
From: "Matt Thomas" <matt_ontheroad@hotmail.com>
Subject: Re: help setting up an array of records
Date: Sun, 26 May 2002 16:10:02 +0000 (UTC)
Date: 2002-05-26T16:10:02+00:00	[thread overview]
Message-ID: <acr1ci$rd3$1@knossos.btinternet.com> (raw)
In-Reply-To: slrnaf1og2.144.randhol+abuse@kiuk0156.chembio.ntnu.no



>
>    MACHINE_SLOTS  :   constant := 6; --
>
>    type PRODUCT_TYPE is
>       record
>             NAME      :   STRING (1..12);
>             LEN       :   POSITIVE;
>             PRICE     :   INTEGER;
>             QUANTITY  :   INTEGER;
>       end record;
>
>    type PRODUCT_TYPE_ARR is array (1..MACHINE_SLOTS) of PRODUCT_TYPE;
>
>    PRODUCT   :   PRODUCT_TYPE_ARR;

--setting up the array
PRODUCT(1) := ("Cola        ",4,60,5);


Yes I put that line in the code just below the the rest of the code I had
written.






  reply	other threads:[~2002-05-26 16:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-26 13:00 help setting up an array of records Matt Thomas
2002-05-26 13:18 ` Preben Randhol
2002-05-26 13:24   ` Preben Randhol
2002-05-26 16:10     ` Matt Thomas [this message]
2002-05-28 15:01       ` Marin David Condic
2002-05-26 16:16 ` Matt Thomas
2002-05-26 19:53   ` Preben Randhol
  -- strict thread matches above, loose matches on Subject: below --
2002-05-22 15:09 Help " Matt Thomas
2002-05-22 16:39 ` Stephen Leake
2002-05-22 17:18 ` Marin David Condic
2002-05-22 17:32 ` Mark Johnson
2002-05-22 19:15 ` Preben Randhol
2002-05-23  1:58 ` Steve Doiel
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox