Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent form referencing
Message
De
25/10/2003 14:12:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/10/2003 13:23:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00842625
Message ID:
00842633
Vues:
16
>I have a parent Form which has a property to reference child Form.
>
>How do I get reference from child Form on a parent Form?

The other way around is a little simpler. If the child form has to have a reference to the parent form, you can just pass ThisForm as a parameter to the child form, and, in the child form's Init(), assign it to a property.

Once you have this, it should be relatively easy to call methods on the parent form, again, passing ThisForm as a parameter.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform