General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only