Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form going out of scope
Message
De
27/07/2006 13:39:13
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form going out of scope
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01140798
Message ID:
01140798
Vues:
75
I have two non modal forms that I want to share data and interact.

Form1.command1.Click()
if TYPE("Form2") == 'O' AND NOT ISNULL(Form2)
Form2.Show()
else
do form2
endif
This works correctly. If Form2 has been previously opened, the .Show() method works as expected. If Form2 has not been opened, it runs correctly.

In Form2.command2.Click() I have the following code:
if TYPE("Form1") == 'O' AND NOT ISNULL(Form1)
Form1.Show()
else
do form1
endif
The reference to Form1 is no longer in scope. I get an 'object Form1 is not found' error.

Thanks in advance.

Dennis Schuette
Dennis Schuette
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform