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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,341730abd589d6e9,start X-Google-Attributes: gid103376,public From: Margit Gut Subject: string operations Date: 2000/11/18 Message-ID: <3A16A4D5.CE941970@t-online.de>#1/1 X-Deja-AN: 695117454 Content-Transfer-Encoding: 7bit X-Accept-Language: de X-Sender: 320016382342-0001@t-dialin.net Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@t-online.com X-Trace: news.t-online.com 974562517 00 19499 JnFCIwESaHdAW 001118 15:48:37 Organization: T-Online Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-11-18T00:00:00+00:00 List-Id: Hi, my name is Margit and I am new here. I just start to learn ADA and I have some problems in understandig what I am doing. I try to read a string from the keyboard and then I want to write a recursiv function to turn the characters from the end to the beginning. I fetch the string with Get_Line. I declared the string with Sstring : string(1..255); So whatever I try, the string'Length is always 255. I can't turn this string to the opposite unless it has its correct Length (5 for hello) How must I declare a string, so that I can eliminate each character separate and its Length is the correct one? My next poblem is, how to do a correct Function, that calls itselve. I tried several possibilitoes, but I think I didn't understand the problem correct. Last question: How can I initiate a string with ""? Can someone help me please? thanks Margit