randommetalguy
Registered User.
- Local time
- Today, 15:03
- Joined
- Nov 25, 2008
- Messages
- 52
Hey guys,
I will be coding something over the next few days and I'm not so sure how to go about doing it.
The user can select a number from a drop down and the tension will be calculated in another box. But, if the user inputs the tension, then the program needs to pick the appropriate value from the drop down box.
So here's my examples:
Input 5.0 into a textbox and 1000 is selected from a drop down. 200 is the tension and is stored into a text box.
You could also input 10.0 into a textbox and 2000 from the drop down and 200 will be the tension.
So understanding that information let's say my one input is 10.0 and I input 300 as the tension. So my program will want to look up 3,000 in my drop down. How do I code that.
Also let's say that 3,000 is not in the dropdown and the only values are 2500, 2800, and 3200 how I can I code to tell the program to go to the next highest break, if the calculated value is not there?
I will be coding something over the next few days and I'm not so sure how to go about doing it.
The user can select a number from a drop down and the tension will be calculated in another box. But, if the user inputs the tension, then the program needs to pick the appropriate value from the drop down box.
So here's my examples:
Input 5.0 into a textbox and 1000 is selected from a drop down. 200 is the tension and is stored into a text box.
You could also input 10.0 into a textbox and 2000 from the drop down and 200 will be the tension.
So understanding that information let's say my one input is 10.0 and I input 300 as the tension. So my program will want to look up 3,000 in my drop down. How do I code that.
Also let's say that 3,000 is not in the dropdown and the only values are 2500, 2800, and 3200 how I can I code to tell the program to go to the next highest break, if the calculated value is not there?