| Visual Basic Programming Help?

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:

  1. Visual basic programming? boss.checker asked: Using 2005 vb -I want to declare variables...
  2. Trouble Writing a basic program with Visual Basic 2005 Express? dconverse2 asked: A motorist wants to determine her gas mileage....
  3. Visual Basic Programming Help? tantrevor07 asked: Hi, im a little new to programming and...
  4. computer programming Visual Basic tutorial? John P asked: Can anyone show me how to work...
  5. why my visual basic program not working ? mrlee asked: I just made a calculator with VB 2008,...

Filed Under Programming & Design |

Tagged With , ,

Comments

2 Responses to “Visual Basic Programming Help?”

  1. Fennec_fox_love on June 13th, 2009 8:31 pm

    your not converting your strings into vars. try this:

    totalafter = val(totaltips)+val(totalbefore)

    the Val function will do the converting for ya.

  2. Yahoo! Answerer on June 16th, 2009 3:08 pm

    totalafter.text = VAL(totaltips.text)+val(totalbefoe.text)

    you must use the VAL function to get the Value of the text.