Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for the existence of a method
Message
From
24/02/1999 03:46:08
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Checking for the existence of a method
Miscellaneous
Thread ID:
00190830
Message ID:
00190830
Views:
44
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.
Next
Reply
Map
View

Click here to load this message in the networking platform