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,439d46bf50ce4c3b X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: Why won't this work Date: 1998/02/03 Message-ID: <19980203134700.IAA29491@ladder02.news.aol.com>#1/1 X-Deja-AN: 321666277 References: X-Admin: news@aol.com Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada Date: 1998-02-03T00:00:00+00:00 List-Id: SiliconJesus writes: >--I want this to kill if the user enters 4 oh's- ... >WHILE Ide /= "OOOO" LOOP ... > Ada.Text_IO.PUT(Item =>"Please enter the Article Id"); > > Ada.Text_IO.Get_Line(Item =>Ide, Last =>how_long); You're comparing "OOOO" with the whole string Ide instead of just the portion of the string that the user typed. Change the WHILE to WHILE Ide(1 .. how_long) /= "OOOO" LOOP and make sure how_long is initialized before the first pass through the loop (perhaps by setting it to 0 in its declaration). - John Herro Download the Ada Tutor program at: http://members.aol.com/AdaTutor ftp://members.aol.com/AdaTutor