>>You should never try to remove an object from collection while iterating through collection.
>
>I said I missed the FOR EACH use, but you said that testing for the TYPE of the property would NOT prevent the error that was originally asked about and that is simply NOT true. If you would like to engage in a discussion please first be sure you know what you are talking about.
I know what I am talking about and I said that using FOR EACH loop and removing objects from the collection will not work. I originally suggested to use name for checking the variable, so please read the whole thread before making any assumptions.
If it's not broken, fix it until it is.
My Blog