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 X-Google-Thread: 103376,cbb87dd49168c396 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-30 06:44:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Get_Line Date: Wed, 30 Oct 2002 14:44:46 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1035989086 438 129.241.83.78 (30 Oct 2002 14:44:46 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 30 Oct 2002 14:44:46 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:30233 Date: 2002-10-30T14:44:46+00:00 List-Id: Justin Birtwell wrote: > Hi, > > I'm having some strange behavior with Get_Line. In a procedure called > GetData I call Get_Line to receive input from the command line. The first > time this function is called it behaves fine prompting the user for input. > The second time it runs the execution passes through Get_Line and no prompt > appears on the command line. Upon doing a little research in the Ref Man. This is because your Put_Line is outside the loop. > > procedure Getdata(P_Num_Of_Points: out Natural) is > Last:Natural:=0; > Buffer:String(1..80):=(1..80=>Character'val(0)); > begin > Ada.Text_Io.Put_Line("Enter between 1 and 6 Balloons to ..."); > loop > begin > > ---This line gets skipped -- Preben Randhol -------------------- http://www.pvv.org/~randhol �.., chaos is found in greatest abundance wherever order is being sought. It always defeats order, because it is better organized.� -- Interesting Times, Terry Pratchett