comp.lang.ada
 help / color / mirror / Atom feed
From: tonyg <tonythegair@gmail.com>
Subject: Re: index check failure - constraint error
Date: Fri, 1 Apr 2011 04:17:13 -0700 (PDT)
Date: 2011-04-01T04:17:13-07:00	[thread overview]
Message-ID: <50a187ed-f454-47c5-af00-e40a0fc4eb2f@p3g2000vbv.googlegroups.com> (raw)
In-Reply-To: 64114572-3a55-4a5f-b1f8-70ee0a67fd2f@glegroupsg2000goo.googlegroups.com

On Apr 1, 12:12 pm, Egil Høvik <egilho...@hotmail.com> wrote:
> In your loop you assume The_String'First=1,
> 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



  reply	other threads:[~2011-04-01 11:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01 10:53 index check failure - constraint error tonyg
2011-04-01 11:07 ` tonyg
2011-04-01 11:27   ` Alex Mentis
2011-04-01 11:33     ` Alex Mentis
2011-04-01 11:36     ` Alex Mentis
2011-04-01 12:18     ` Georg Bauhaus
2011-04-01 22:20       ` tonyg
2011-04-01 23:37         ` Ludovic Brenta
2011-04-01 11:12 ` Egil Høvik
2011-04-01 11:17   ` tonyg [this message]
2011-04-01 12:13     ` Ludovic Brenta
2011-04-01 15:02     ` Adam Beneschan
2011-04-01 17:39 ` Jeffrey Carter
2011-04-01 22:16   ` tonyg
2011-04-01 22:31     ` Jeffrey Carter
2011-04-01 22:49       ` Robert A Duff
2011-04-01 23:00         ` Adam Beneschan
2011-04-01 23:29           ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox