Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh grid
Message
De
20/09/2005 06:58:02
 
 
À
19/09/2005 22:46:21
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01050226
Message ID:
01051187
Vues:
23
Public f_form_a, f_form_b

The use of public variable is a very bad idea. An alternative solution would be to use this code in the Load() of the child form:
Thisform.AddProperty( [oParent], _Screen.ActiveForm )
This is because _Screen.Activeform remains the calling form in the Load(). _Screen.activeform does not change until after the Init() finishes. Then, whenever a new record is added to the grid's RecordSource on the parent form, all that is needed is this code in the child form:
Thisform.oParent.MyGrid.Refresh()
No public variables required.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform