Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if a form is active
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00858980
Message ID:
00858982
Vues:
23
This message has been marked as the solution to the initial question of the thread.
Hi Vince!

You can store referrence to the form like this:
Local lcThisFormName
lcThisFormName = ThisForm.Name
public (lcThisFormName)
Store ThisForm to (lcThisFormName)
But you can also enumetare all opened forms like this:
For i= count_all To 1 Step -1
	oCurrentForm = _Screen.Forms(i).Name
	If (FormShouldBeReleased)
		oCurrentForm.Release
	endif
	....
EndFor
>Hi all
>I need to release of series of forms from a main menu. However, not all forms may have been opened. Can't issue a clear all because the current form needs to remain open.
>
>question: How do I determine if a form is open short of creating a variable that is set when the form is opened and checking that variable prior to form-id.release.
>
>thanks in advance, vince
Venelina Jordanova

Outsourcing IT Services Ltd.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform