Raising events from objects in a collection??? 
Author Message
 Raising events from objects in a collection???

sure you need to send back the object

RaiseEvent MyEvents(MyObject)

 Sub objDoor_Opened(Myobj as  objDoor)
if objDoor.id=10 then
'some code
else
'more code

end if

 'code when door has opened
 'yadda yadda yadda
 End Sub


Quote:
> Does anyone know of some type of routine to respond to events of objects
in
> a collection.
> For example:

> -objDoor is an object which has an "Opened" event
> -colDoors is a collection of objDoor objects

> To repond to the event with just an object, you would code:

> Sub objDoor_Opened()
> 'code when door has opened
> 'yadda yadda yadda
> End Sub

> But what if there were several - or several hundred - objDoor "items"
> (objects) in an objDoors collection, and one of them doors opened. How
would
> you respond to that?



Tue, 12 Aug 2003 19:50:53 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Raising events from objects in a collection

2. Raising events from objects in a collection

3. Raising events from objects in a collection

4. Raising events from objects in a collection???

5. Raising events from objects in a collection???

6. Raising events from objects in a collection???

7. Raising events from objects in a collection???

8. Raising events from objects in a collection???

9. Objects in Collection and Raise Events

10. Raising events from collection member objects?!?!

11. Raising events from a class within a collection class

12. Raise event from Collection member??

 

 
Powered by phpBB® Forum Software