Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement