Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close any open form before exit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00913951
Message ID:
00913998
Vues:
14
>
>IF _Screen.FormCount > 0
>    FOR x = 1 TO _Screen.FormCount
>       _Screen.Forms(x).Release
>    ENDFOR
>ENDIF
>
This code can get you into trouble. The problem is that the formcount decreases each time you release a form. It's better to start with the higher number and decrement your counter in this case:
IF _Screen.FormCount > 0
    FOR x = _screen.FormCount to 1 step -1
       _Screen.Forms(x).Release
    ENDFOR
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform