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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,48caf5ee96a8456b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-14 14:30:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <86Rr6.57913$W05.11839272@news1.rdc1.mi.home.com> Subject: Re: Using records properly. Message-ID: Date: Wed, 14 Mar 2001 22:28:22 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 984608902 127.0.0.1 (Wed, 14 Mar 2001 17:28:22 EST) NNTP-Posting-Date: Wed, 14 Mar 2001 17:28:22 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:5741 Date: 2001-03-14T22:28:22+00:00 List-Id: 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