Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing all forms
Message
 
To
20/11/1998 11:20:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00159684
Message ID:
00159787
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform