Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining Method Call Level within a Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Determining Method Call Level within a Class
Divers
Thread ID:
00668375
Message ID:
00668375
Vues:
60
Assume that in method A, I call Method B which calls Method C .. etc
If I am now in Method X and want to determine which Method called it, I cannot use the Program(1) Function as it will give me "A", Program(2) = "B".
I need to Know nLevel = Level of Program X in order to determine the method name that called it via Program(nLevel-1). How do I determine nLevel?

Note: I am aware I could have passed the Method name that called Method X as a parameter or set it as a property. I am not happy with this approach.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform