0

Hi I am doing this simple program in visual basic express

Sum.Text = Val(Num1.Text * 3) + Val(Num2.Text) + Val(Num3.Text) - Val(Num3.Text)

This allows the user to enter number of wins (which gets x by 3) number of draws and number of losses.

I have to limit the user to entering a combination of only 10 i.e 4 wins 3 draws 3 lose.

I have been trying to put an it statement in that will prompt user to check input if they enter a combination of less or more than 10, any help would be great.

I hope this makes sense.

Thanks for looking

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

first of all clear these things out.....

num1.text --> refers to the textbox where user supposed to enter total wins
num2.text --> refers to the textbox where user supposed to enter total draws
num3.text --> refers to the textbox where user supposed to enter total loses

am I right or wrong???

if yes, then further tell me, how would you like to check whether the values entered are not exceeded 10? will the sum of num1.text+num2.text+num3.text be compared to 10 or something else?

explain more clearly how would you wish to compare the values...

regards
Shouvik

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.