Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a form exist? (I'm missing something simple)
Message
 
À
30/11/2002 19:44:24
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00728422
Message ID:
00728425
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform