Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passive Observers
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00171144
Message ID:
00171922
Views:
26
>Any way to implement that in VFP 5.0

I don't know of a clean way to implement raising events in VFP 5 without adding too much overhead. For this particular problem, in VFP5 you could do something that isn't quite as elegant by adding an additional observer object to the form itself. Basically, a subscriber would register itself with the form-level observer AND the application-level observer. When the form is Destroyed, it can send a corresponding message to all registered observers.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform