Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access the parent form property in child form obj
Message
De
05/06/2014 01:18:25
 
 
À
05/06/2014 00:46:17
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01601319
Message ID:
01601329
Vues:
32
>Dear Al Doman,
>How can I update and refresh a parent form property value from the
>child form.

Following up from my previous code sample, if you've saved the parent form reference as ChildForm.ParentFormReference, then in a method of the child form you can do something like
This.ParentFormReference.PropertyYouWantToUpdate = "Some New Value"
This.ParentFormReference.Refresh( )
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform