Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close ALL forms
Message
De
01/06/2001 05:54:21
 
 
À
01/06/2001 05:23:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00513626
Message ID:
00513633
Vues:
19
>Hi
>
>How can I close all the forms in _Screen.
>
>I have tried:
>
>FOR x = 1 TO _Screen.FormCount
>_Screen.FOrms(x).Release()
>ENDFOR
>
>But this gives me problems, because when a form is closed, the formcount is reduced and this seems to cause problems.
>
>Any ideas on how this should be done correctly?
>
>Thanks
>Kev

Kevin,

You have to go in reverse order.
lnCount = _Screen.FormCount
FOR x = lnCount TO 1 STEP -1
    _Screen.Forms(x).Release()
ENDFOR
Jens Erik
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform