>One is OOP, the other is a hangover form old FP :-) The Forms collection is actually the preferred method.
>
Hiya John,
I wonder if there might be some problem if the loop was a FOR...NEXT and the subscript kept incrementing. I think that someone (David Frankenbach's name comes to mind) recommended something like:
DO WHILE _SCREEN.FormCount > 0
_SCREEN.Forms(1).Release
ENDDO
Of course, you might want to stick a call to QueryUnload in there to make sure that the form could be released, and take in account that if the form couldn't be, you might want to provide another exit method from the loop.
Or am I coming down with "Stick My Foot in My Mouth Friday" again.:-)
PS David, if it wasn't you, sorry.
George
Ubi caritas et amor, deus ibi est