comp.lang.ada
 help / color / mirror / Atom feed
From: mjsilva697@earthlink.net (Mike Silva)
Subject: Re: Record help
Date: 29 May 2002 10:54:55 -0700
Date: 2002-05-29T17:54:55+00:00	[thread overview]
Message-ID: <27085883.0205290954.2d0cbf24@posting.google.com> (raw)
In-Reply-To: x7vofezldux.fsf@pushface.org

Simon Wright <simon@pushface.org> wrote in message news:<x7vofezldux.fsf@pushface.org>...
> "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?

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



  reply	other threads:[~2002-05-29 17:54 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
2002-05-29 17:54   ` Mike Silva [this message]
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