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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bf52245c1c52e2e9 X-Google-Attributes: gid103376,public From: Per Sandberg Subject: Re: End of a string???? Date: 2000/10/13 Message-ID: <39E6F59F.B712234B@cntw.com>#1/1 X-Deja-AN: 680964272 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news3.global-ip.net 971437366 139.58.232.1 (Fri, 13 Oct 2000 13:42:46 MET DST) MIME-Version: 1.0 NNTP-Posting-Date: Fri, 13 Oct 2000 13:42:46 MET DST Newsgroups: comp.lang.ada Date: 2000-10-13T00:00:00+00:00 List-Id: If your construct is procedure foo( s : string) is ... And you want to know the last char of the string the answer is s'last The first is: s'first The length is: s'length and finaly if you want to loop over it, the loop construct is for index in s'range loop .. .. end loop; This is if you are working with the basic string-type in Ada. /Per Sandberg