General information
Category:
Coding, syntax & commands
Title:
Determining Method Call Level within a Class
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only