Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if another form is open
Message
De
11/01/2006 22:43:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01085589
Message ID:
01085942
Vues:
11
Hope following may help -
Local loForm,llOpen

For Each loForm In Application.Forms
        *-- If Atc(loForm.Caption,"My Caption") # 0

	If Atc(loForm.Name,"MyForm") # 0
		llOpen = .T.
		Exit
	Endif
Endfor

If !m.llOpen
	Do Form myform Name loForm
	*-- or
	loForm = Newobject("myform")
	loForm.Visible = .T.
Endif
loForm.txtAbcd.SetFocus
>I want to be able to ascertain if another form is open, then transfer control to that form. It sounds easy but can't find the syntax for this.
Manoj Karki
manoj0karki@yahoo.com
Nepal
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform