2 Replies Latest reply on Jan 5, 2008 2:42 PM by jono.r

    Looping thru column names based on a variable value

      I have an ArrayCollection with a series of columns named price1, price2... thru to price10

      I'm trying to loop thru these columns based on a variable value, but can't figure the syntax:

      for (var column:int = 1; column < 11; column++){
      testPrice = myGrid.selectedItem.price(column); <-- this doesn't work