Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Hide and Show Features
Message
 
To
08/09/2000 08:34:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00414061
Message ID:
00414066
Views:
24
>When i hide my initial form to bring up a new form, it doesn't bring up the first form:
>
>thisform.hide()
>Do Form 2
>
>Click Event of the close button in Form 2:
>thisform.release()
>Form1.Show()
>
>But it's not finding Form1. even when I attempt to name it. Any clues anyone?

You need to pass the object reference of THISFORM from the first form to the second.

THISFORM.HIDE()
Do FORM2 WITH THISFORM

*Set the parameter THISFORM in the init section of the form2 to a property say oCalledFrom

* Then in the click method of the close button
THISFORM.oCalledFrom.Show()
THISFORM.RELEASE()
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform