943,949 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 634
  • VB.NET RSS
Sep 12th, 2008
0

Display weight base on a age value?

Expand Post »
Hey,
i am trying to display weight base on a age input without using a table vb.net. Say a age can be anyware from 1 to 18 yrs and weight at 1 = 11kg with a avg increase of 3kg per year. I thought of using a for loop but not sure how to connect that to the age.

what method could best solve this in vb.net any suggestions?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
3Dees is offline Offline
23 posts
since Sep 2008
Sep 12th, 2008
0

Re: Display weight base on a age value?

VB.NET Syntax (Toggle Plain Text)
  1. Dim iAge, iWeight As Integer
  2. iAge = Val(TextBox1.Text)
  3. iWeight = ((iAge - 1) * 3) + 11

hth

Samir Ibrahim
Reputation Points: 69
Solved Threads: 19
Junior Poster
samir_ibrahim is offline Offline
155 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Mdi Form
Next Thread in VB.NET Forum Timeline: Search Access Records





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC