PDA

View Full Version : trying to do a resturaunt order taking program


twixt
03-11-2005, 10:59 PM
im trying to do it in realbasic, i figured out how to do buttons and all others but im stuck on the most important part of i need to enter a code say, 50 which is fried rice, i need it to associate 50 to fried rice and add the name to a listbox and then add the price to the total. id guess youd do this with a database? i am trying to figure out REALdb but i dont know how to add entries to the lists. and is it possible to do it this way and is there another way? thnx

Jason
03-12-2005, 12:05 AM
aside from the fact that it sounds like a homework assignment and that I don't know VB I would recomend a switch statement for this. Use a for loop to grab all the inputs while testing them agains different case statements....


Jason