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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2e8cf506f89b5d0a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-19 14:33:34 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Looping over a tagged record? Date: 19 Jun 2001 23:32:49 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <9god9a$g04$0@208.164.98.151> NNTP-Posting-Host: mix-velizy-107-4-202.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 992986388 11210 193.249.47.202 (19 Jun 2001 21:33:08 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 19 Jun 2001 21:33:08 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.103 Xref: archiver1.google.com comp.lang.ada:8898 Date: 2001-06-19T21:33:08+00:00 List-Id: "M R Goodwin" writes: > Hi! > > This is a part practical, and a part 'I wonder' type problem. > I have a tagged record that is pretty big. Most, but not all of > the elements in it are a bounded string type. Because I don't feel > like the typing and all I would need to do to assign and later change > values, I was wondering if there is anyway to loop over all elements in > the record, checking their type and then taking the right action... And now to answer your question: No there is no way to iterate through record's fields. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"