Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh grid
Message
From
20/09/2005 06:58:02
 
 
To
19/09/2005 22:46:21
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01050226
Message ID:
01051187
Views:
9
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform