Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    Why not do this:
    this.parent.Billing_State.selectedIndex = rawValue;
  2. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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...
  3. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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,...
  4. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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...
  5. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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...
  6. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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...
  7. Replies
    15
    Views
    1,277

    Re: I need a simple loop code

    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...
Results 1 to 7 of 7