Hi,
Is there a way of knowing when I call an event or call RaiseEvent
from a superclass if the child class implemented the event? I need to
trap when child classes do not implement events.
I cannot use the event's return value because the return value from
some events is 'reserved', i.e., if the event returns an integer, it
could return an integer in any range, even negative or zero, as part
of the implementation -- so I can't check for some known value that
indicates that the event was implemented/not implemented.
I'm trapping unimplemented events because the framework I'm
constructing is expandable and using events is easier than overriding
methods. However, unimplemented events should not 'fail' silently --
I'd like to raise an exception when they are not implemented. In the
past I've used class methods & overriding to trap unimplemented
functionality, by raising an exception if a superclass' method was
called and not the overriding child class' implementation.
John
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>