Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining Method Call Level within a Class
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Determining Method Call Level within a Class
Miscellaneous
Thread ID:
00668375
Message ID:
00668375
Views:
61
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.
Next
Reply
Map
View

Click here to load this message in the networking platform