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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f24b55bcdf15c088 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-06 16:02:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!dispose.news.demon.net!demon!grolier!nerim.net!teaser.fr!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Ada95 tutorials with sample code. Date: Tue, 6 Mar 2001 18:58:50 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 983923206 95954 137.194.161.2 (7 Mar 2001 00:00:06 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 7 Mar 2001 00:00:06 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5485 Date: 2001-03-06T18:58:50-05:00 Oops! Forgot to move a statement after cut-and-paste. with Ada.Characters.Handling; use Ada.Characters.Handling; procedure Xyz is opt_is : character := ' '; begin while opt_is /= 'V' and then opt_is /= 'A' loop Put( opt_prompt ); NEW_LINE; Ada.Text_IO.Put_Line( "Please enter either a 'V' or an 'A' ); Get( opt_is ); opt_is := To_Upper(opt_is); end loop; end Xyz; -----Original Message----- From: mcdoobie [mailto:chainsaw.two.thousand@nospam.dot.home.dot.com] Sent: Tuesday, March 06, 2001 5:39 PM To: comp.lang.ada@ada.eu.org Subject: Re: Ada95 tutorials with sample code. I'm definitely gonna check it out, in addition to the www.mcondic.com website mentioned in another post. Now I have a quick question. I'm using a loop to test for the existence of a certain variable, but I'm not quite sure how to go about it. Heres what it looks like right now... while opt_is not 'V' or 'A' loop Put( opt_prompt ); NEW_LINE; Ada.Text_IO.Put_Line( "Please enter either a 'V' or an 'A' ); Get( opt_is ); end loop; Now, I'm not sure what I'm supposed to be doing at the start of the loop. Any help woiuld be appreciated. Thanks. McDoobie mcdoobie@hotmail.com _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada