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

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

confusing to read. please explain more what exactly you want to do..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.