Of Matt Chotin
Sent: Thursday, February 09, 2006 11:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: e4x XML question - possible bug?
I'm not sure the filtering predicate operator will work for a variable.
I think you're going to need to do this instead:
var matches:XMLList = new
I'm not sure the filtering predicate operator will work for a variable.
I think you're going to need to do this instead:
var matches:XMLList = new XMLList();
var i:int = 0;
for each (var emp:XML in x.employee)
{
if (emp[testVar] == testValue)
{
matches[i++] = emp;
}
}
The e4x compiler
2 matches
Mail list logo