Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing forms
Message
De
17/09/1999 08:05:09
 
 
À
17/09/1999 04:52:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00265777
Message ID:
00265805
Vues:
23
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
Fil
Voir

Click here to load this message in the networking platform