>>Since _SCREEN.Forms is a VFP collection, you can also use the FOR EACH ... ENDFOR and not worry about the boundaries.
>
>No, it will not work.
>The problem here is that the size of the _SCREEN.FORMS collection changes on the fly.
You will have about a half om them released and that's it.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison