Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does a form exist? (I'm missing something simple)
Message
 
To
30/11/2002 19:44:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00728422
Message ID:
00728425
Views:
14
There are a few options.

1. Use VARTYPE(form2) = 'O'
2. Use TYPE('form2') = 'O' and ! ISNULL(form2)
3. Check PEMSTATUS for one of form2's properties

Cheers,

Andrew

>I have an app that has two forms. Each are instantiated using:
>
>do form form1 name form1 linked
>do form form2 name form2 linked
>
>Form1 needs to know if form2 is running. If, from form1 I do:
>
>if type('form2')='O'
>
>it always returns true, even if form2 is closed and no longer operating, but debug will show its value as .null. if it's not running. How can form1 know if form2 is still alive and well?
>
>Thanks a bunch,
>Allen


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Reply
Map
View

Click here to load this message in the networking platform