anonymous
2009-05-10 20:00:09 UTC
My code is kind of awkward to read so the jist of it is:
I solve the variables in a custom made public function and then call them when I click the "Display" button.
For example I check to see if someone ordered Coffee, Coke, or Nothing.
That function results in Coffee.
Tax kicks in the next function
tax=(CoffeePrice)*0.05
Now it is my main function when I click Display
The tax should be 0.05, but when I Call the DrinkTax function it's not allowing me to use the "Tax" I just solved for. (lbl_tax.caption=Tax)
I also tried doing it the way I think you do it in java, lbl_tax.caption=DrinkTax.Tax