Something crossed my mind today. A bit of a techie question.

If I, in a script connect to multiple events, but want the same sub or function 
to be executed when any of the events take place. Kind of:

ConnectEvent ObjectName, "Event1", "happening"
ConnectEvent ObjectName, "Event2", "happening"

Function Happening()
    Speak "something has happened."
End Function 'Happening.

Long as either of the events 1 or 2 takes place at different times, I guess the 
above code would work. (sure, with real names, of course.) But what if the two 
events take place at the same time? Is there any "life-line" that secures that 
events don't fire simultaneously? I guess not. So in a case like above, will I 
actually have to make two different eventHandling functions, with the exact 
same content (good thing we have copy and paste, smile)? Or, is there a safe 
way of handling a situation like this, with one "common" EventHandler?

Thanks for any input.

Reply via email to