comp.lang.ada
 help / color / mirror / Atom feed
From: maggiejohn@aol.com (MaggieJohn)
Subject: Re: integer'image
Date: 2000/04/19
Date: 2000-04-19T00:00:00+00:00	[thread overview]
Message-ID: <20000419001245.10259.00001322@ng-ci1.aol.com> (raw)
In-Reply-To: 29IK4.5459$sB3.3596@news.indigo.ie

You are getting the exception because there is always a space at the beginning
of an integer'image for a '-' sign.    

Try this one:

procedure make_a_string( thing : string  ) is
    len : natural := thing'len;
     this_string : string(1..len );
begin
      -- do whatever
end;

for x in 1..20 loop
     make_a_string( integer'image(x));
end loop;




  parent reply	other threads:[~2000-04-19  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-17  0:00 integer'image NANCY HEHIR
2000-04-17  0:00 ` integer'image tmoran
2000-04-17  0:00 ` integer'image Ted Dennison
2000-04-18  0:00   ` integer'image Marin D. Condic
2000-04-18  0:00     ` integer'image Ted Dennison
2000-04-18  0:00       ` integer'image Marin D. Condic
2000-04-19  0:00 ` MaggieJohn [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-01-28  3:27 integer'image Jim West (Stealth Contractor)
1991-01-28 15:04 ` integer'image Michael Feldman
1991-01-28 23:09   ` integer'image (George C. Harrison) Norfolk State University
1991-01-29 19:55     ` integer'image stephen edwards
     [not found] <2563@sparko.gwu.edu>
1991-01-18 19:13 ` integer'image Arthur Evans
1991-01-18 20:32   ` integer'image Michael Feldman
1991-01-20  2:54   ` integer'image       Hoysch
1991-01-20 23:10     ` integer'image Michael Feldman
1991-01-21 15:23     ` integer'image Jerry Callen
1991-01-21 19:41       ` integer'image Steven V. Case
1991-01-21 21:54         ` integer'image Jerry Callen
1991-01-22 19:21         ` integer'image Michael Feldman
1991-01-22 21:37           ` integer'image Richard Pattis
1991-01-23 16:29             ` integer'image Michael Feldman
1991-01-18 23:05 ` integer'image (George C. Harrison) Norfolk State University
1991-01-19 10:51 ` integer'image Jean Pierre Rosen
replies disabled

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