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-Thread: 103376,c8faa961aaf3fddb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail From: "jimmaureenrogers@worldnet.att.net" Newsgroups: comp.lang.ada Subject: Re: help with string splitting Date: 9 Mar 2006 11:58:53 -0800 Organization: http://groups.google.com Message-ID: <1141934333.442284.262220@u72g2000cwu.googlegroups.com> References: <1141863131.984654.144550@j52g2000cwj.googlegroups.com> <4jMPf.4128$6I.3573@newsread3.news.pas.earthlink.net> <1141883649.513514.212680@p10g2000cwp.googlegroups.com> <2315080.YNFrSGcu4b@linux1.krischik.com> <1141929103.884438.161300@i40g2000cwc.googlegroups.com> NNTP-Posting-Host: 69.170.89.0 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1141934339 8916 127.0.0.1 (9 Mar 2006 19:58:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Mar 2006 19:58:59 +0000 (UTC) In-Reply-To: <1141929103.884438.161300@i40g2000cwc.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: u72g2000cwu.googlegroups.com; posting-host=69.170.89.0; posting-account=SqOfxAwAAAAkL81YAPGH1JdBwpUXw9ZG Xref: g2news1.google.com comp.lang.ada:3313 Date: 2006-03-09T11:58:53-08:00 List-Id: isaac2004 wrote: > >You could put in some debugging code: > the thing is that i know what is wrong with the code but i cant figure > out the algorithm > > >Code_Index is a variable declared as part of for loop. C99 can do that as > well - finally ;-) > > so Code_index would be like this > > for Code_Index in Count loop > > bla bla ; > end loop; > > Codetext'Length is just a variable for length and codetext'range is one > for max index > im kinda confused Codetext'Length is the length of the Codetext array. It is the number of elements in the array. Codetext'range is the range of index values for the array Codetext. Jim Rogers