Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing all forms
Message
 
À
20/11/1998 11:20:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00159684
Message ID:
00159787
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform