6 Replies - 458 Views - Last Post: 16 January 2013 - 10:33 AM Rate Topic: -----

#1 _ProBoy_  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-December 12

VB 10 calculating textboxes

Posted 14 January 2013 - 08:09 AM

Hi!
I have 5 textboxes and im trying additing all of them and then multiply the result with textbox6.text
My code:
[ResultBox.Text = (Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text))* Val(Multiply.Text)]
Result is allways 0 :'(
Help!
Sry for bad English
Is This A Good Question/Topic? 0
  • +

Replies To: VB 10 calculating textboxes

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,788
  • Joined: 12-June 08

Re: VB 10 calculating textboxes

Posted 14 January 2013 - 08:16 AM

So what's wrong with the situation?
Was This Post Helpful? 0
  • +
  • -

#3 _ProBoy_  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-December 12

Re: VB 10 calculating textboxes

Posted 14 January 2013 - 08:26 AM

View Postmodi123_1, on 14 January 2013 - 08:16 AM, said:

So what's wrong with the situation?

so i need correct result.when i put numbers in textboxes result show in resultbox
but my code dont work as well.
like i said result is allways 0
Was This Post Helpful? 0
  • +
  • -

#4 torind_2000  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 57
  • View blog
  • Posts: 292
  • Joined: 22-August 11

Re: VB 10 calculating textboxes

Posted 14 January 2013 - 09:03 AM

This might help. Debugging 101
Was This Post Helpful? 0
  • +
  • -

#5 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,788
  • Joined: 12-June 08

Re: VB 10 calculating textboxes

Posted 14 January 2013 - 09:25 AM

Yeah.. you should be slapping a break point there and verifying you have the right numbers... and are not multiplying by zero, etc.
Was This Post Helpful? 0
  • +
  • -

#6 _ProBoy_  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-December 12

Re: VB 10 calculating textboxes

Posted 16 January 2013 - 10:29 AM

problem solved
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,788
  • Joined: 12-June 08

Re: VB 10 calculating textboxes

Posted 16 January 2013 - 10:33 AM

Care to explain whatcha did?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1