>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.
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