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 15:54:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!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:51:01 -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 983922785 95934 137.194.161.2 (6 Mar 2001 23:53:05 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 6 Mar 2001 23:53:05 +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:5484 Date: 2001-03-06T18:51:01-05:00 Without caring or trying to figure out why, to answer what I think your question is: with Ada.Characters.Handling; use Ada.Characters.Handling; procedure Xyz is opt_is : character := ' '; begin opt_is := To_Upper(opt_is); 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 ); 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