1 Reply Latest reply on Aug 13, 2006 4:18 PM by Matlus

    for each loops: the type of the variable

    Matlus Level 1
      I see warnings in the editor telling me that the type of the variables in my for each loops has not been specified. I'm using an XMLList type (as the collection) and I can't figure out what the type of each item needs to be.
      Here is a sample of my code.

      var xmlList:XMLList = xmlDoc.dataTable[0].dataRow;
      for each(var item in xmlList) {
      }

      so what is the type of the "item" variable supposed to be? I tried XMLNode but it doesn't like that. The debugger shows me the complete "node" but does not show the type.

      Shiv