Ofnuts wrote:Can't see the code. For me "Save and order more" would create some aggregate (list/tuple/class) with data of that order and add it to a list. The final "save" adds the last order to the list and then iterates the list or orders to compute the total price.
LavaCreeperKing wrote:Well something you could do is when the order a new sub button is pressed you create a list then add the new order info to that list. Then you can have it display all the info from that list and do this over for as many subs as you can get. So what you could do is because you have a max order of 5 at the start of your program create 5 lists. Then every time you click the order new sub button check to see what order you are on and next time you hit the save button save all the info to that list: order 1 list 1, order 2 list 2. Then have it display or print the items in each list and you can also check to see how many orders there are so you don't try to print an order from a list if that order has not been placed.
Users browsing this forum: No registered users and 2 guests