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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1458d1793850de4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-16 13:28:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "CheGueVerra" Newsgroups: comp.lang.ada Subject: Interger_io get and Text_io.Get_line X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 16 Oct 2003 16:12:59 -0400 NNTP-Posting-Host: 67.68.219.237 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1066335175 67.68.219.237 (Thu, 16 Oct 2003 16:12:55 EDT) NNTP-Posting-Date: Thu, 16 Oct 2003 16:12:55 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:1016 Date: 2003-10-16T16:12:59-04:00 List-Id: I figured out who to play with the strings and get the desired length out of my strings, but now I have an other trouble. When I try to Get an Integer and then Get_line a String, the Integer works great, but it seems to jumps over the Get_line. [Code Snippet] with Text_io; use Text_io; Procedure TestString is subType MyString is string(1..10); package Entiers is new Text_io.Integer_io (Num => Integer); Last : Natural := 0; TstStr : MyString; Number : integer; begin Put_line("Test of string 10"); Put_line("Enter a number"); Entiers.get(Number); New_line; Put_line("Enter a string"); ==== it seems to skip this line and go directly to the Put_line Get_Line(TstStr, Last); ===== Put_line(TstStr(TstStr'First..TstStr'Last)); Entiers.Put(Number); end TestString; So, I figure that I'm doing something wrong AGAIN, and been trying to figure what, but after a couple of hours trying I'm getting really mad with myself and ada, I feel like I can't even write code anymore, because this is really basic stuff and I can't seem to figure it out CheGueVerra