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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2ac407a2a34565a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.221.4 with SMTP id qa4mr16691405pbc.7.1330462623961; Tue, 28 Feb 2012 12:57:03 -0800 (PST) Path: h9ni20276pbe.0!nntp.google.com!news2.google.com!postnews.google.com!db5g2000vbb.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Array Help? Date: Tue, 28 Feb 2012 12:50:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <5fb69aec-7ee9-46f4-85ff-672971d03acd@db5g2000vbb.googlegroups.com> References: <10615783-d4a9-4cbd-8971-53ba1100d6a0@b18g2000vbz.googlegroups.com> NNTP-Posting-Host: 62.202.72.55 Mime-Version: 1.0 X-Trace: posting.google.com 1330462623 10142 127.0.0.1 (28 Feb 2012 20:57:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 28 Feb 2012 20:57:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: db5g2000vbb.googlegroups.com; posting-host=62.202.72.55; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-02-28T12:50:28-08:00 List-Id: Will wrote: >... A(4) = 62 Just to avoid confusion, 4 is the index, 62 is the element. >... if I wanted to go through an array easy man: for index in A'range loop [your nice code] end loop; >... numbers in them that do not end in 1 or 2. no need to worry about how many digits number N has: (N mod 10) has guaranteed one :-) HTH _________________________ Gautier's Ada programming http://freecode.com/users/gdemont