Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing forms
Message
From
17/09/1999 08:05:09
 
 
To
17/09/1999 04:52:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00265777
Message ID:
00265805
Views:
22
You need to pass the form handle to the second form:

Form A:
DO FORM FormB WITH THISFORM

Form B:
Init():
LPARAMETERS toParentForm
THISFORM.ParentForm = toParentForm && Store the handle to a property to access it later

Release():
THISFORM.ParentForm.Enabled = .T.

HTH
>I gave a name to my main form. When I call another form from this one, I disable it. When quitting the other form I can give an enable statement from the form I'm closing and I get the desired effect.
>When I put the name of the form in the watch I can see the whole object.
>
>I tried to use this same effect with another form in the same program, but I can't make it work. It gives the error that the object does not exist.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform