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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,992e84f408e149d8 X-Google-Attributes: gid103376,public From: "Bob Fletcher" Subject: Re: How to initiate part of a string? Date: 1998/09/24 Message-ID: <01bde7ac$91707760$5330ea9e@UKP014459.logica.co.uk>#1/1 X-Deja-AN: 394336277 References: <35E171AB.75CD@ddre.dk> <35e2dc46.1973509@SantaClara01.news.InterNex.Net> <35e3675e.37587430@SantaClara01.news.InterNex.Net> <35e45c89.12901035@SantaClara01.news.InterNex.Net> Organization: Logica UK Limited Newsgroups: comp.lang.ada Date: 1998-09-24T00:00:00+00:00 List-Id: can't you do: Txt: String(1..100) := (28..31=>"abcd", Others=>' '); or am I missing the point; Tom Moran wrote in article <35e45c89.12901035@SantaClara01.news.InterNex.Net>... > > Txt : String(1 .. 100) := (1 .. 27=>' ') & "abcd" & (32 .. 100=>' '); > vs > > Txt : String(1 .. 100) := (1 .. 27=>' ') & "abcd" & (1 .. 69=>' '); > The former has the advantage of less error-prone arithmetic required > of the writer or readers of the code. >