Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for the existence of a method
Message
De
24/02/1999 03:46:08
Marco Beuk
Innovero Software Solutions
The Hague, Pays-Bas
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Checking for the existence of a method
Divers
Thread ID:
00190830
Message ID:
00190830
Vues:
45
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
Fil
Voir

Click here to load this message in the networking platform