creamy5man
New Member
I got this program, and when users click a button, I want them to be able to change the name and price of a drink.
This is what I have so far.
The first two lines of code work, and that changes the price and name in the array, but the last line doesn't work. That line I want to change the drink name on the actual interface. All the drink command buttons are called "cmdDrinks" and then have an index number from 0-7.
I dunno what I did, i'm stuck.
Any help, pleeease?
This is what I have so far.
Private Sub cmdChangeDrink_Click()
sdrinks(3) = InputBox("Enter Drink Name")
cprices(3) = InputBox("Enter Drink Price")
cmdChangeDrink = InputBox("Enter Drink Name")
End Sub
The first two lines of code work, and that changes the price and name in the array, but the last line doesn't work. That line I want to change the drink name on the actual interface. All the drink command buttons are called "cmdDrinks" and then have an index number from 0-7.
I dunno what I did, i'm stuck.
Any help, pleeease?