Information générale
Titre:
Checking for the existence of a method
Does somebody know how to find out wether a certain method exists for a certain object.
I have used amembers() but it was to slow.
Now i just fire the method, even if it doesn't exist. An alternative error-routine makes sure no error is displayd when the method doesn't exist. This is much too dirty.
Why do i want this.
I made some user defined events. For instance an event called FinalValid contains a validation for when the record is saved. So in the save-button i want to trigger all the FinalValid events for the objects which have one.
Marco.
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