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,ba4b87d0297adb3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-28 22:46:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Record help Date: 29 May 2002 06:31:02 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1022651115 nnrp-13:29423 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:24906 Date: 2002-05-29T06:31:02+01:00 List-Id: "tr4ck" writes: > Say you have a record, which gets its data from a file. > > TYPE Data IS RECORD > No : Integer; > Name : String(1..20); > END RECORD; > Info: Array (1..10) OF Data; > > When you display the record you get: > 1111 SomeName > 1111 SomeName > 1111 SomeName > > How is it possible to display just 1 line of 1111 SomeName instead of 3 > (Assuming the file has the same info 3 times)? By writing code to check whether "this" value is the same as the "previous" value? Seriously, you've given us so little context that we can't help you. What does "gets its data from a file" mean? what does "display" mean? If this is a student project, ask your teachers.