Why not do this:
this.parent.Billing_State.selectedIndex = rawValue;
Type: Posts; User: Norm
Why not do this:
this.parent.Billing_State.selectedIndex = rawValue;
What statements are giving you the problem?
The if statement? You are using them in the currently posted code.
See: The if-then and if-then-else Statements (The Java™ Tutorials > Learning the...
What part are you having trouble with?
The if test to check if the value of rawValue is in range. What are the valid values?
The 3 assignment statements
pseudo code:
test if in range
if true,...
That should make the light come on. If you ALWAYS want to assign the value of the rawValue to the three fields, why all the tests? One if test to check that the value is in the desired range and...
What happens when you compile and execute it?
What is the relationship between the value of the variable: rawValue and the value assigned to the 3 variables inside all the if statements?
Why the...
How do you want to use a loop with the code posted in post#1?
What is the relationship between the value of the variable: rawValue and the value assigned to the 3 variables inside all the if...
Look at using a for loop. See the tutorial for details:
The for Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
Also there are lots of sample codes here on the...