Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Show Form Hide
Message
 
À
13/02/2003 08:54:48
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00752644
Message ID:
00752648
Vues:
14
>I have an application and with that when a user selects a certain menu item then I want the form (form A) that is showing to be hidden and a new form (form B) is shown. Then when the user clicks on the cancel button from from B form A is shown and form B is released. When I call 'DO' form B I have form A.Hide in Form B's load method, but I get an error that says "Object form A is not found". What is it that I am doing wrong?

Julie,
When you call form B pass the object of form A
do form FormB with ThisForm
in the Init method of form B store the passed object to a property.
* Init
lparams loFormA
ThisForm.oFormProperty = loFormA
Don't forget to release the object in the Destroy method
* Destroy
ThisForm.oFormProperty = .NULL.
dodefeult()
HTH
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform