comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: help setting up an array of records
Date: Sun, 26 May 2002 13:24:18 +0000 (UTC)
Date: 2002-05-26T13:24:18+00:00	[thread overview]
Message-ID: <slrnaf1og2.144.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: slrnaf1o5c.134.randhol+abuse@kiuk0156.chembio.ntnu.no

On Sun, 26 May 2002 13:18:36 +0000 (UTC), Preben Randhol wrote:
> Have you definded PRODUCT( ) somewhere ?

Sorry I think my answer is a bit confusing. Looking at the code you
posted earlier I see that you have done:

   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;

So the question is now where did you put the following line : 

   PRODUCT(1) := ("Cola        ",4,60,5);

in your code?

Preben



  reply	other threads:[~2002-05-26 13:24 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 [this message]
2002-05-26 16:10     ` Matt Thomas
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