>>You should never write code like your example. You should always use the "2" flag of BindEvent() and then use RaiseEvent() to actually call the event.
>
>I disagree. Circumstances vary on how BindEvents is used.
Let's just make it clear that there are two ways to use BindEvent():
1. To encapsulate the functionality of your classes during design
2. To extend the functionality of your classes as an after thought
In my experience, and especially in the designing of a framework which I think is your current task, you shouldn't be using #2.
So #1 is the game. With that said, what type of circumstances do you have in mind?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement