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-29 10:54:55 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mjsilva697@earthlink.net (Mike Silva) Newsgroups: comp.lang.ada Subject: Re: Record help Date: 29 May 2002 10:54:55 -0700 Organization: http://groups.google.com/ Message-ID: <27085883.0205290954.2d0cbf24@posting.google.com> References: NNTP-Posting-Host: 206.245.217.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022694895 20424 127.0.0.1 (29 May 2002 17:54:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 May 2002 17:54:55 GMT Xref: archiver1.google.com comp.lang.ada:24947 Date: 2002-05-29T17:54:55+00:00 List-Id: Simon Wright wrote in message news:... > "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? Also, what does "the same info" mean? Seriously, is "1111 somename" the same? Is "1111 Some Name" the same? Is "1111 Some J. Name" the same? For a school assignment you may just be working with "nice" data, but just be aware that in the real world "the same" can be a very a messy concept! Good luck! Mike