Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close all forms?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284684
Message ID:
00285046
Vues:
24
Hi George,

I would rethink this if I were you, what happens when QueryUnload returns .F., then you continue on all honkey dorey. This is what I might do:
local llFailed
for lnX = 1 to _screen.FormCount
   if !_screen.Forms(lnX).QueryUnload()
      llFailed = .T.
      EXIT
   endif
endfor
If !llFailed then close down your forms. This is like a transaction type deal, if one of the forms can't close, none will.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform