I want to find specific value on a XMLListCollection.
I try to use something like this but it doesn’t work!
var xmllisteRDV:XMLList= XML(event.result).RDVClinik;
xmlCollSuivi = new XMLListCollection(xmllisteRDV);
var index:Number = -1;
for(var i:Number = 0; i < xmllisteRDV.length(); i++)
{
if(XML(xmllisteRDV[i]).@grDateDeb == todayDate)
{
index = i;
break;
}
}
First going to try pointing out errors in the original code:
Here’s a version I think will work possibly with changes to how todayDate is built