Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms not releasing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00132131
Message ID:
00132449
Vues:
17
*----Rlwinds.prg : Release all windows
Jeff,

I was going crazy trying to get forms to close, especially after an error occurred. The breakthrough came when I started treating them as windows. The following code has been very effective in releasing all open forms.


** PROCEDURE DESTROY ALL SCREENS
_screen.lockscreen= .t.
Show window all
LOCAL i, LCwindow
FOR i= 1 to _screen.formcount
LCwindow= wontop()
IF !empty(LCwindow)
Rele window (LCwindow)
ENDIF
ENDFOR
_screen.lockscreen= .f.
Brett Slattery
Slattery@ewol.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform