Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if another form is open
Message
From
11/01/2006 22:43:18
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01085589
Message ID:
01085942
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform