comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Using records properly.
Date: Wed, 14 Mar 2001 22:28:22 GMT
Date: 2001-03-14T22:28:22+00:00	[thread overview]
Message-ID: <agSr6.3429$54.3966@www.newsranger.com> (raw)
In-Reply-To: 86Rr6.57913$W05.11839272@news1.rdc1.mi.home.com

In article <86Rr6.57913$W05.11839272@news1.rdc1.mi.home.com>, McDoobie says...
>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); 

The syntax would be something a bit more like 
NewRec.Person_Name := aName;
(assuming aName is an 80 character string)

>NewRec := (aName, aAddr, aNum, aMail);
That'll work too (again, assuming all of your a* stuff are 80 character
strings).

>I'm a little fuzzy on this. 
You should really try to get hold of a decent Ada book. This is pretty basic
stuff, and I doubt you want to try to learn *all* the basics one question at a
time in newsgroups. (right?)


---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-03-14 22:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14 21:09 Using records properly McDoobie
2001-03-14 22:28 ` Ted Dennison [this message]
2001-03-14 23:16   ` McDoobie
replies disabled

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