Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a function return it's parent?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00543844
Message ID:
00543864
Views:
23
>I have an object that I built an error handler and logger for. In that object, I call a function. If an error occurs in the function it would be nice to call the error handler in my object. Is there a way for a function to determine what object called it?
>
>Or is this just all-around bad programming style?

The error in the function would trigger Error event of your object and you can process it there or pass it to the error handler.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform