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!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: help with string splitting References: <1141863131.984654.144550@j52g2000cwj.googlegroups.com> <4jMPf.4128$6I.3573@newsread3.news.pas.earthlink.net> <1141883649.513514.212680@p10g2000cwp.googlegroups.com> In-Reply-To: <1141883649.513514.212680@p10g2000cwp.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 09 Mar 2006 19:28:25 GMT NNTP-Posting-Host: 67.150.76.238 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1141932505 67.150.76.238 (Thu, 09 Mar 2006 11:28:25 PST) NNTP-Posting-Date: Thu, 09 Mar 2006 11:28:25 PST Xref: g2news1.google.com comp.lang.ada:3311 Date: 2006-03-09T19:28:25+00:00 List-Id: isaac2004 wrote: >>for Code_Index in Codetext'Length loop > > this code confuses me > what is Code_Index and Codetext'Length Code_Index is the index variable for the for loop. You've done the same thing in your code, where you called it I. The problem is that this for loop has an error; "for I in 7 loop" is not a valid for loop. The writer probably meant Codetext'range. If you aren't familiar with the array attributes 'First, 'Last, 'Length, and 'range, then you really need to spend some time with your textbook. If they're not described and used there, spend some time here: http://www.adaic.org/standards/95lrm/html/RM-3-6-2.html Attributes are an important part of the language, and you don't really know Ada if you're not familiar and comfortable with the common ones. -- Jeff Carter "Crucifixion's a doddle." Monty Python's Life of Brian 82