1 Reply Latest reply on Aug 5, 2007 7:09 AM by kglad

    i need to "read" a string....

    costasefimeros
      Please, excuse my poor engilsh...

      I have one txt file with some variables. I want to choose dynamic what variable from them i want to use. Lets say that the txt file has the following:
      &t1=0&
      &t2=1&


      If I want to place the t2 into a textbox (calld textbox1) i can simply do:

      LoadvariablesNum ("file.txt", 0);
      this.tetxtbox1.text=_root.t2


      Now I'm creating a variable with some calculations to define what from t1or t2 i need .. f.e.

      var page=2
      var iwant="_root.t"+page


      the problem i have is that when now i'm trying

      this.textbox1.text=iwant

      instead to have the t2 result i'm getting "_root.t2"

      I need your help. How i can declare that the "iwant" is something that i want to read? not just write?

      Thank you very much for your timeText