Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close all active forms?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01314968
Message ID:
01315023
Vues:
18
Hi Mike & Tracy,

Please see Re: For each doesn't release all forms? Thread #1241310 Message #1241387 (and the whole thread)

>I'm trying to find and close all active forms. the problem is during run time form names are not used also there may be several forms with the same name. What is the correc way of doing this?
>
>
>LOCAL lnFormCount, k, dum
>
>*-- get a active form count
>lnFormCount = _screen.FormCount
>
>*-- get non found getout
>IF lnFormCount = 0
>	RETURN
>ENDIF
>
>*-- close all forms
>FOR k = lnFormCount TO 1 STEP -1
>	
>	dum = ALLTRIM(_screen.Forms(k).name) + '.Release()'
>	&dum
>	
>next
>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform