comp.lang.ada
 help / color / mirror / Atom feed
* Using records properly.
@ 2001-03-14 21:09 McDoobie
  2001-03-14 22:28 ` Ted Dennison
  0 siblings, 1 reply; 3+ messages in thread
From: McDoobie @ 2001-03-14 21:09 UTC (permalink / raw)


So I have this record in my spec file that goes like this ...

type people_entries is record
        person_name : String( 1..80 );
        person_addr  : String( 1..80 );
        person_num  : String(  1..80 );
        person_mail  :  String( 1..80 );
end record;


Now, I know how to store the information in the record...


NewRec : people_entries;

NewRec := person_name(aName); 

etc....

Now, would I use a "NewRec" for each field, or would I go something like...

NewRec := (aName, aAddr, aNum, aMail);

I'm a little fuzzy on this. 
And how would I tag each record to make it unique, cause all the computer 
is gonna see is "NewRec" and overwrite the last record for each new one 
that is entered.

Thanks.

McDoobie


-- 
This is my sig.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-14 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-14 21:09 Using records properly McDoobie
2001-03-14 22:28 ` Ted Dennison
2001-03-14 23:16   ` McDoobie

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