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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9797292c79ff60c X-Google-Attributes: gid103376,public From: John Slavich Subject: Re: Help: Get/Get_line Date: 1998/05/17 Message-ID: <355E79FE.448@info.polymtl.ca>#1/1 X-Deja-AN: 353960668 Content-Transfer-Encoding: 7bit References: <355E0DE6.6867@info.polymtl.ca> <355e2708.30001755@SantaClara01.news.InterNex.Net> MIME-Version: 1.0 NNTP-Posting-Date: Sun, 17 May 1998 01:48:14 EDT Reply-To: jslavich@info.polymtl.ca Content-Type: text/plain; charset=us-ascii Organization: Bell Solutions Newsgroups: comp.lang.ada Date: 1998-05-17T00:00:00+00:00 List-Id: Thanks Tom and Matthew for replying to my message. I apologize for being so unclear the first time, I will now try to redeem myself. In my first example: with Ada.Text_Io, Ada.Integer_Text_Io; use Ada.Text_Io, Ada.Integer_Text_Io; ... number, number2: integer; name: string (1..50); ... begin get_line(name, number2); ... get(number); ... end xx; In this situation, everything works fine, i.e., I get a first prompt in my window where I just enter a string, after pressing "return" I get a second prompt for an integer and all is well. My problem is when I need to invert the "get" and "get_line" like so: ... begin get(number); ... get_line(name, number2); ... end xx; At the first prompt I enter an integer and as soon as I hit the return key, it skips over the "get_line" command and doesn't prompt me to enter a string. I get no error from the "get_line" command. I do get an error when I want to use the content of the "name" variable (e.g., openning a file), but if I don't use the "name" variable after the "get_line", I get no error whatsoever. During my troubleshooting, I checked the contents of "name" before and after the "get_line" command and it remains unchanged (i.e. just junk). (I'm using GNAT on Win-95.) I hope that I was a little clearer and that my explanation makes sense. Again thanks for your help. JOhn