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=-0.3 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, REPLYTO_WITHOUT_TO_CC autolearn=no 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 15:18:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.mi.home.com.POSTED!not-for-mail From: McDoobie Subject: Re: Using records properly. Newsgroups: comp.lang.ada Reply-To: nospam@nospam.com References: <86Rr6.57913$W05.11839272@news1.rdc1.mi.home.com> Organization: Caffinated Corps. Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8Bit User-Agent: KNode/0.3.2 Message-ID: Date: Wed, 14 Mar 2001 23:16:27 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.mi.home.com 984611787 24.0.109.49 (Wed, 14 Mar 2001 15:16:27 PST) NNTP-Posting-Date: Wed, 14 Mar 2001 15:16:27 PST Xref: supernews.google.com comp.lang.ada:5744 Date: 2001-03-14T23:16:27+00:00 List-Id: Ted Dennison wrote: > 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 Your right. Heh. I've pretty much been using the online tutorials and documentation to pick up this stuff. Looks like I'm off to Barnes and Noble. There have been some good book recommendations here. I'll look them up. McDoobie -- This is my sig.