Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Show Form Hide
Message
 
To
13/02/2003 08:54:48
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00752644
Message ID:
00752648
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform