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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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-28 19:35:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.algx.net!allegiance!news.stealth.net!news.stealth.net!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: help setting up an array of records Date: Tue, 28 May 2002 11:01:41 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1022598102 19636 136.170.200.133 (28 May 2002 15:01:42 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 28 May 2002 15:01:42 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:24894 Date: 2002-05-28T15:01:42+00:00 List-Id: Just guessing from what you are saying, that this appears in the declarative part of the program. What you've got is an executable statement and it belongs in the executable part of the program. Try putting it after the "begin" and see if it gets better. (BTW, there *is* a way to initialize the array in the declarative part of the program, but you've got to do it with an aggregate at the point where the object is declared. Try it with the statement you've got now first & if you want to try it another way, post here again and maybe we can point you at an appropriate reference.) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Matt Thomas" wrote in message news:acr1ci$rd3$1@knossos.btinternet.com... > > > > > > 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. > > >