Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing a form
Message
 
 
À
10/01/2004 14:10:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00865761
Message ID:
00865766
Vues:
13
Antranik,

Your code skips over every other form. To avoid that, start at the end of array and loop backwards.
for x = _screen.formcount TO 1 STEP -1
	...
	_screen.forms(x).release
endfor
>Hi,
>
>I have a problem releasing a form from memory.
>
>I have one main MEMBER form that calls a second form for details and from my second form I use a SHORTCUT MENU to lik to a WORKER form.
>
>When the users select the WORKER option from my SHORTCUT MENU I release all my open forms and call my WORKER form.
>
>for x = 1 to _screen.formcount
> _screen.forms(x).show()
> _screen.forms(x).release
>endfor
>
>do form worker
>
>What happens is that my MEMBER form is release but my DETAILS form will stay in memory until I close my WORKER form.
>
>Can anyone tell me what I'm doing wrong?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform