Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling method from parent form
Message
De
09/09/1999 12:28:02
 
 
À
09/09/1999 12:00:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00262927
Message ID:
00262964
Vues:
19
>You have to pass the form pointer to the second form:
>
>In Form1: DO FORM Form2 WITH THISFORM
>
>In Form2.Init():
>LPARAMETERS toForm
>THISFORM.ParentForm = toForm && Store the pointer in a new property of Form2
>
>To call Form1.TheMethod() from Form2: THISFORM.ParentForm.TheMethod()
>
>HTH

Thanks, that did the trick. I have another question for you. A bulk of my applications are in FPW26 and I'm converting to VFP6. I have a library of functions and procedures that I use on a regular basis and use the "SET PROCEDURE TO.." command for accessing them. Should I continue using "SET PROCEDURE TO.." or should I be going in another direction?

TIA

/Chris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform