i am currently working on a project where i am reading from a database to display menu items in a 'restaurant style ordering program'. I have been successful in loading the database into labels in the form to display the different menu options, and then i have managed to place individual items into the listboxes, which show the order, BUT i am having problems getting the totals of the selected orders.
i have read another post here http://forums.dreami...showtopic=16565 that had a similar problem to what i am experiencing, but i am having some difficulties adapting it to my program.
I know that i can add these prices to a total variable, and keep adding the items, but since i also would like to individually remove items from the order, i dont know if it is possible to subtract values.
I have 2 list boxes which display 1)the food item and additional information and 2)the price. I have these in separate list boxes, because i thought that i would be able to add the total price, but i cant seem to do this.
my second problem is that once i have set up the list boxes correctly, i need to save this information to a text file, which can later be displayed in another list box in another exe.
first things first though. is the way i am displaying the orders in the list boxes the most appropriate way to do it, or should i have it all in the one list box, and then, how do i find the total of the prices of the order?
I have attached my program with all the work i have done on it so far. the database location might need to be changed, so that you can view it properly, since i could not give a relative address for it, so it can be found in the bin folder.
I appreciate any help you can give me,
Number of downloads: 965
This post has been edited by Hiluke: 09 July 2006 - 05:58 AM