1 Reply Latest reply on May 25, 2006 2:33 AM by Tolk

    How come this doesn't work?

    Tolk Level 1
      for (i=0;i!=(row*col);i++){
      total+=parseFloat(eval("value"+(i+1)));
      trace(total);
      trace(parseFloat(eval("value"+(i+1))));
      }

      total is a variable from a dynamic text box and the eval("value"+(i+1)) variables are from input text boxes. The trace(parseFloat(eval("value"+(i+1)))); displays the values entered in the input boxes correctly but the trace(total); displays NULL everytime.
      Variables row and col both = 2, and the input text values = random integer (entered by user).
      I'm probably missing something really stupid but i can't see what is wrong with this.