Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a function return it's parent?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00543844
Message ID:
00543861
Vues:
12
>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?

You can always pass THIS as a parameter to your function. Now your function has a reference to the object that called it. I don't think this is bad programming at all.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform