From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bfd2577f2aff5bb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-26 06:24:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: help setting up an array of records Date: Sun, 26 May 2002 13:24:18 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1022419458 23249 129.241.83.82 (26 May 2002 13:24:18 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sun, 26 May 2002 13:24:18 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:24830 Date: 2002-05-26T13:24:18+00:00 List-Id: 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