comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent <daemon2@internet.lu>
Subject: Re: Annoying behavior
Date: Fri, 24 Apr 2015 23:51:31 -0700 (PDT)
Date: 2015-04-24T23:51:31-07:00	[thread overview]
Message-ID: <05f29613-aa64-47e2-bf91-35b29590a942@googlegroups.com> (raw)
In-Reply-To: <67c2d992-bea4-4043-b7c3-38a2630d965b@googlegroups.com>

On Saturday, April 25, 2015 at 6:31:26 AM UTC+2, gautier...@hotmail.com wrote:
 
> What is happenning is exactly what you have programmed:
>  Name (1 .. S'Length) := S;
> 
> At some point Name is "Amikacine      "
> Then you have S = "Aug", so the 3 first letters are replaced and you get
> "Augkacine      ". If you stuff with spaces it will solve the problem.
> Either with Name:= (others => ' '); before copying S or
> Name(S'Length+1..Name'Last):= (others => ' '); before or after.
> 
> HTH
> _________________________
> Gautier's Ada programming
> http://gautiersblog.blogspot.com/search/label/Ada
> NB: follow the above link for a valid e-mail address

Had this type of problem  already just to tired/frustrated to see the cause especially since I got it displayed.

Thanks


  reply	other threads:[~2015-04-25  6:51 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24 21:40 Annoying behavior Laurent
2015-04-25  4:31 ` gautier_niouzes
2015-04-25  6:51   ` Laurent [this message]
2015-04-25  4:50 ` Niklas Holsti
2015-04-25  7:15   ` Laurent
2015-04-25  8:10     ` Niklas Holsti
2015-04-25 15:37       ` Laurent
2015-04-25 13:54 ` Stephen Leake
2015-04-25 15:46   ` Laurent
2015-04-25 17:02     ` Simon Wright
2015-04-25 17:41     ` Niklas Holsti
2015-04-25 18:58       ` Laurent
2015-04-25 19:30         ` Georg Bauhaus
2015-04-25 20:13           ` Laurent
2015-04-25 21:46             ` Laurent
2015-04-25 23:16           ` Bob Duff
2015-04-26 10:38     ` Jedi Tek'Unum
2015-04-26 11:52       ` Textedit and txt Laurent
2015-04-26 13:21         ` brbarkstrom
2015-05-06 21:23           ` Randy Brukardt
2015-05-07 21:12             ` Laurent
2015-05-07 21:48               ` Simon Wright
2015-05-07 22:24                 ` Laurent
2015-05-08  5:50                   ` Simon Wright
2015-05-08  7:35                     ` Laurent
2015-05-08 23:35               ` Randy Brukardt
2015-05-09 19:25                 ` Laurent
2015-05-09 21:36                   ` Anh Vo
2015-05-11 17:00                 ` Shark8
2015-05-11 17:49                   ` Dmitry A. Kazakov
2015-05-09 15:23               ` brbarkstrom
2015-05-12  1:10                 ` Randy Brukardt
2015-05-12 12:44                   ` brbarkstrom
2015-05-12 21:57                     ` Randy Brukardt
2015-05-13 12:07                       ` brbarkstrom
replies disabled

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