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

On Tue, 20 Aug 2002 00:39:42 -0500, "Mike Schilling"

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?

Have a look at the Collection WithEvents demo at
http://www.*-*-*.com/ ;or the collection stuff at  Edanmo's
site ( http://www.*-*-*.com/ )

HTH,
Bryan
____________________________________________________________
New Vision Software            "When the going gets weird,"
Bryan Stafford                   "the weird turn pro."

Microsoft MVP-Visual Basic     Fear and Loathing in LasVegas



Sun, 08 Jun 2003 02:02:12 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