Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to execute the release-routines of all open forms
Message
 
À
21/09/1998 17:23:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00139245
Message ID:
00139277
Vues:
27
Of course, if a form won't release for some reason, you'll be caught in an infinite loop. Something like this works better...

FOR lnI = _SCREEN.FormCount TO 1 STEP -1
IF TYPE("_SCREEN.Forms(1).Name") = "C"
_SCREEN.Forms(1).Release
ENDIF
NEXT

IF _SCREEN.FormCount > 0
* Something went wrong, probably a circular object reference
* between forms or an open transaction or something.
ENDIF
Mike Feltman

F1 Technologies
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform