Results 1 to 4 of 4

Help with Restaurant Menu

Threaded View

  1. #1
    Registered User
    Join Date
    04-25-2011
    Location
    US
    MS-Off Ver
    Excel 2008
    Posts
    3

    Help with Restaurant Menu

    I am currently working on a restaurant project where if a user selects the specific index of an item the price comes up on the screen. I am having issues with working on the remove button. It removes the items but when there are no items left to select, the subtotal for all orders does not display the correct price. Below is the code I am currently working on. If anyone can help, I would greatly appreciate it.


     If lstCurrentOrder.ListIndex = -1 Then
          MsgBox ("There isn't anything selected/left to remove")
            
        Else
            Dim index_list As Double
            index_list = (lstCurrentOrder.ListIndex)
            
            dordercost = dordercost - adCosts(index_list)
            lstCurrentOrder.RemoveItem index_list
            lstCurrentOrderCost.RemoveItem index_list
            
            boxOrderTotal.Text = Str(dordercost)
    Last edited by tLeG#77; 04-25-2011 at 09:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1