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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,decb0c44a2cbd5dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-29 19:24:20 PST From: dale Newsgroups: comp.lang.ada Subject: Re: How to delete charcters in a string? Organization: rmit References: User-Agent: MT-NewsWatcher/3.0 (PPC) Date: Wed, 30 Jan 2002 14:22:46 +1100 Message-ID: NNTP-Posting-Host: dale.cs.rmit.edu.au X-Trace: itsawnews.its.rmit.edu.au 1012360941 dale.cs.rmit.edu.au (30 Jan 2002 14:22:21 +1100) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!harbinger.cc.monash.edu.au!vrn.edu.au!131.170.8.40.MISMATCH!itsawnews.its.rmit.edu.au!dale Xref: archiver1.google.com comp.lang.ada:19376 Date: 2002-01-30T14:22:46+11:00 List-Id: comp.lang.ada@ada.eu.org wrote: > hi > (im new to ada by the way) > > well supose there is a character in a string which i do not want to be > seen > in the output. i don't want to change it to anouther character but > delete > it completely. You can't remove characters from a string. This sounds like a limitation, but it is simply asking too much from the "String" type. Ways around this problem are... Construct a brand new string. E.g. New_String : String := Old_String (1..4) & Old_String (5..Last); You can't however do... Old_String := Old_String (1..4) & Old_String (5..Last); Use a different type,such as... Ada.Strings.Unbounded.Unbounded_String Dale ------------ And now a word from our sponsor ------------------ Do your users want the best web-email gateway? Don't let your customers drift off to free webmail services install your own web gateway! -- See http://netwinsite.com/sponsor/sponsor_webmail.htm ----