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
ublish(). 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...

Continue reading...