I know PBP do not handle strings too well. I would like to get an idea on how to get this issue solved.
Obviously this Lookup command do not work, but if PBP could handle it, it is exactly what I need. What is the best way to make this work. I think the program is pretty much self explainable.
K


Code:
Lookup Beverage_type, [Coke, Pepsi, DietCoke, DietPepsi],B1      

'/////////////////////////////////////////  
'///////  Selection beverage type  ///////////
'/////////////////////////////////////////
Selection_beverage_type:

		lcdout $FE,1,  " Type: ", B1
		lcdout $FE,$C0, "Next or Select"
		pause 200
		if Selection=1 then return
		if Next1=1 then 
			Beverage_type = Beverage_type+ 1
			if Beverage_type > 3 then Beverage_type = 0
			Gosub Selection_beverage_type
		Endif
Return