> From: "Joseph J. Strout" <[EMAIL PROTECTED]>
> Date: Fri, 10 Mar 2006 15:04:27 -0700
> 
> At 4:13 PM -0500 3/10/06, John Balestrieri wrote:
> 
>> Is there a way of knowing when I call an event or call RaiseEvent
>> from a superclass if the child class implemented the event?
> 
> No.

Here is what I do to work around this particular problem. Define a class
called "MyBoolean" and give it a public boolean property mBoolean. Now
define your event as "evDoSomething as MyBoolean" in the super class. In the
superclass's code say:

Function DoSomething as Boolean

Dim SomeMyBoolean as MyBoolean=evDoSomething

If SomeBoolean isa MyBoolean then
//okay, it looks as if the subclass handled the event
Return SomeBoolean.mBoolean
Else
//implement default behaviour here
Return false//for example
End if

The same idea works with integers, strings or whatever.

Hth,


- Maximilian Tyrtania | [EMAIL PROTECTED]
  fischerAppelt Kommunikation GmbH
  Tucholskystr.18 | D-10117 Berlin | Germany
  Tel. ++49-30-726146-728
  http://www.fischerappelt.de

--




_______________________________________________
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>

Reply via email to