Hi Jamie,
>...somewhere that the use of a collection and FOR EACH made good sense and it is buggy
Oddly enough I hit another similar problem later in the day. I had a collection of objects one of whose properties was a reference to another object. After building the collection some of the original references to these 'inner' contained objects were released. Subsequently attempting to access these objects via the collection produced confusing results. E.g:
ISNULL(Object)
TYPE("Object")
? Object.Name
? TYPE("Object.Name")
In the end I was reduced to using the last line above as a basis to determine whether the object actually existed. I would have expected either
(a) the object to remain instantiated because a reference to it was held in the collection or (b) (and less likely) the collection reference to be .NULLed.
Oh Well, Regards,
Viv