comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Record help
Date: 29 May 2002 06:31:02 +0100
Date: 2002-05-29T06:31:02+01:00	[thread overview]
Message-ID: <x7vofezldux.fsf@pushface.org> (raw)
In-Reply-To: YbXI8.154473$xS2.12590841@news1.calgary.shaw.ca

"tr4ck" <tr4ck@rediffmail.com> 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.



  reply	other threads:[~2002-05-29  5:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29  2:39 Record help tr4ck
2002-05-29  5:31 ` Simon Wright [this message]
2002-05-29 17:54   ` Mike Silva
2002-05-29  9:57 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox