Add ability to have classes subscribe to named events.

  • Thread starter Thread starter Lieven De Foor
  • Start date Start date
Status
Not open for further replies.
L

Lieven De Foor

Guest
Procedures can publish named events using the PUBLISH statement. Procedures can subscribe to named events using the SUBSCRIBE statement. Procedures can also subscribe to class based events using the ObjectName:EventName:Subscribe(EventHandler) syntax. Classes can publish class based events using EventName:Publish(). Classes can subscribe to class based events using ObjectName:EventName:Subscribe(EventHandler). But classes cannot subscribe to named events using the SUBSCRIBE statement. Trying to do this results in error 13587. Adding this functionality would allow us to have legacy code (.p) communicate with new (cls) code and vice versa. That way we can easily replace legacy components by new class based components without the need to change both ends (the publisher doesn't need to know if a method or a procedure is subscribed, so the publisher doesn't need code changes). Regards, Lieven

Continue reading...
 
Status
Not open for further replies.
Back
Top