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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1b6f0735bc6de58e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p3g2000vbv.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: index check failure - constraint error Date: Fri, 1 Apr 2011 04:17:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <50a187ed-f454-47c5-af00-e40a0fc4eb2f@p3g2000vbv.googlegroups.com> References: <64114572-3a55-4a5f-b1f8-70ee0a67fd2f@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: 82.46.232.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1301656633 27311 127.0.0.1 (1 Apr 2011 11:17:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Apr 2011 11:17:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p3g2000vbv.googlegroups.com; posting-host=82.46.232.121; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19632 Date: 2011-04-01T04:17:13-07:00 List-Id: On Apr 1, 12:12=A0pm, Egil H=F8vik wrote: > In your loop you assume The_String'First=3D1, > that may not always be the case, especially if > you call this function on array slices. > Try "for count in The_String'Range loop" instead > > -- > ~egilhh Worked a treat - still don't understand why the first character in the string is not 1 though, Thanks for the help