Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop through active forms?
Message
De
01/07/2003 08:18:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00805479
Message ID:
00805650
Vues:
22
Hi David,

Would'nt the following work as well:
local loForm as form
for each loForm in _screen.forms
  loForm.release
endfor
Glenn

>Tim,
>
>Both the other guys forgot their step = -1 in the code. Another thing to consider:
>
>
n = 1
>for i = 1 to _screen.FormCount
>   if ( _screen.Forms[n].QueryUnload() )
>      _screen.Forms[n].Release()
>   else
>      n = n + 1
>   endif
>endfor
>
>This always releases form #1 in the array as long as the form says it's ok to be released by checking QueryUnload.
>
>>How do I loop through active forms that are not in a formset? I need to know what form are currently open and close them or hide them at any one point.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform