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,697fa9e83df511c1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-22 09:44:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Help setting up an array of records Date: 22 May 2002 12:39:53 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1022086008 396 128.183.220.71 (22 May 2002 16:46:48 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 22 May 2002 16:46:48 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24534 Date: 2002-05-22T16:46:48+00:00 List-Id: "Matt Thomas" writes: > I know this might be a stupid question to most of you but i have just > started using Ada. No problem. We don't do homework, but we will answer specific questions. > > 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; This is a good start. Now show what you have tried to do that doesn't work, so we can make suggestions. -- -- Stephe