comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: help with string splitting
Date: Thu, 09 Mar 2006 19:28:25 GMT
Date: 2006-03-09T19:28:25+00:00	[thread overview]
Message-ID: <tl%Pf.4306$6I.2029@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <1141883649.513514.212680@p10g2000cwp.googlegroups.com>

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



  parent reply	other threads:[~2006-03-09 19:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  0:12 help with string splitting isaac2004
2006-03-09  0:44 ` jimmaureenrogers
2006-03-09  2:21 ` Jeffrey R. Carter
2006-03-09  5:54   ` isaac2004
2006-03-09 16:50     ` Martin Krischik
2006-03-09 18:31       ` isaac2004
2006-03-09 19:58         ` jimmaureenrogers
2006-03-10 10:45         ` Martin Krischik
2006-03-09 19:28     ` Jeffrey R. Carter [this message]
2006-03-09  7:43 ` Anders Wirzenius
2006-03-09 10:15 ` Georg Bauhaus
replies disabled

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