F
Franck Diastein
Hi, I'm trying to remove items from a collection this way:
foreach(Object myO in ObjectCol){
if(myO != "xxx"){
myO.Remove();
}
}
But I'm having an error telling me that Collection was modified... I
understand this, since I remove one object from collection...
What is the best way to remove objects from my collection ?
TIA
foreach(Object myO in ObjectCol){
if(myO != "xxx"){
myO.Remove();
}
}
But I'm having an error telling me that Collection was modified... I
understand this, since I remove one object from collection...
What is the best way to remove objects from my collection ?
TIA