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,364deb6698b494cb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-01 10:43:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada String Issue: String within Strings References: <3B17A0DB.6B1B7F09@raytheon.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 01 Jun 2001 17:43:10 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 991417390 24.7.82.199 (Fri, 01 Jun 2001 10:43:10 PDT) NNTP-Posting-Date: Fri, 01 Jun 2001 10:43:10 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:7988 Date: 2001-06-01T17:43:10+00:00 List-Id: > LineItem : String(1..10) := " ABC "; > Catch : String(1..10) := "ABC "; Since Catch is the same length as LineItem it can either match starting at the first character (which this doesn't) or not at all. You probably want Catch : String(1..3) := "ABC"; > Jndex : Natural := 3; "Last" is a commonly used name.