SELECT EVERY CASE

by Herman Cain (Premier Login iorr5t)
Forum Owner

A poll at QB64 asks if a SELECT EVERY CASE would be a good keyword. I'm all for it. For instance, if I wanted a pepperoni pizza with extra cheese and mushrooms, I could order a 2,4,6

CLS

PRINT "Godfather's Pizza Menu."
PRINT "1) Salami";
PRINT "2) Extra Cheese";
PRINT "3) Pineapple";
PRINT "4) Pepperoni";
PRINT "5) Onions";
PRINT "6) Mushrooms";
PRINT "7) Green Peppers";

LINE INPUT "WHAT 'S YOU WANT ON YO DAMN PIZZA?", pizza$

SELECT EVERY CASE pizza$
CASE 1: PRINT "Salami ";
CASE 2: PRINT "Extra Cheese ";
CASE 3: PRINT "Pineapple ";
CASE 4: PRINT "Pepperoni ";
CASE 5: PRINT "Onions ";
CASE 6: PRINT "Mushrooms ";
CASE 7: PRINT "Green Peppers ";
END SELECT

PRINT "I want " + pizza$

REM I am Herman Cain, and I approved this code.

 

Posted on Jan 2, 2012, 8:04 PM

Respond to this message   

Return to Index


Response TitleAuthor and Date
* Dammit Herman. 9-9-9 means Nein! Nein! Nein!Female German Godfather's Pizza Worker. on Jan 2
* Try it with SELECT EVERY WOMAN HermanMitt on Jan 2
EXIT SELECT would be rather usefulBen on Jan 2
Problem there is... on Jan 2
 NO problem, just tell me what you want and I'll say it!...Mitt on Jan 2
 Hey Bob, I'm sorry you can't get olives on your pizza but...Popeye the Coderman on Jan 2
  * But I will gladly pay you Thursday for a hamburger today! on Jan 3
Actually that code wouldn't work!Galleon on Jan 3
 Galleon did you see the post about EXIT SELECT? on Jan 3