Visual Basic Programming Help?
michbox asked:
okay i created a simple income calculator but once i debug and the outputs come they are wrong. like i have 3 text boxes; total tips, total before tips, and total after. in the code i have it “total after = total tips + total before”. for example if its “total after = 98 + 32″ instead of being 130 it would show 9832. Any ideas on whats wrong? Any input would be greatly appreciated! thanks!
Related posts:
- Visual basic programming? boss.checker asked: Using 2005 vb -I want to declare variables...
- Trouble Writing a basic program with Visual Basic 2005 Express? dconverse2 asked: A motorist wants to determine her gas mileage....
- Visual Basic Programming Help? tantrevor07 asked: Hi, im a little new to programming and...
- computer programming Visual Basic tutorial? John P asked: Can anyone show me how to work...
- why my visual basic program not working ? mrlee asked: I just made a calculator with VB 2008,...
Filed Under Programming & Design |
Tagged With Income Calculator, Visual Basic Programming, Visual Programming
Comments
2 Responses to “Visual Basic Programming Help?”
your not converting your strings into vars. try this:
totalafter = val(totaltips)+val(totalbefore)
the Val function will do the converting for ya.
totalafter.text = VAL(totaltips.text)+val(totalbefoe.text)
you must use the VAL function to get the Value of the text.