Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Observer Pattern for Inter-Form Communication?
Message
From
05/06/1998 09:51:41
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105110
Message ID:
00105112
Views:
32
>I am in the midst of designing a form class which uses an Observer Pattern to communicate between forms. This would be useful if you have a form that has child records from a table on another currently open form. When you navigate through the records in the parent form you want the child records on the other form to be refreshed.
>
>I was curious if anyone has already set up a class similar to this?

I always use this kind of interface. Basically, any form carries primary/froeign keyvalue property and setcontrols method. Both of them set/called in Form.Activate event, i.e. if you want to refresh something in other form then the only thing to do is to shift focus there.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform