• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

How to know from where the function/Procedure is Called.

Hello Friends,
   In my program a function is called from the code which is generated dynamically. Is there any method by whick I can understand that from which function/event/routine the function is been called.
Regards,
       bhatul
0
bhatul
Asked:
bhatul
1 Solution
 
TimCotteeHead of Software ServicesCommented:
No is the simple answer, you have to pass this as a parameter or set a global variable which stores this information. VB does not have any way of determining the procedure caller at runtime.
0
 
rspahitzCommented:
But at development run-time, you can check the stack to see what procedures were called to get to a specific piece of code:  Ctrl-L while in the debugger.
0
 
bhatulAuthor Commented:
Thanks TimCottee and rspahitz.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
rspahitzCommented:
If that answered your question, click Tim's "accept this comment as answer" button.
0
 
MoondancerCommented:
ATTENTION bhatul -->  Please click the following link and BRING ALL YOUR OPEN QUESTIONS TO A CONCLUSION.
 
Administration will be contacting you in this regard if they remain open for another 7 days.  You have nine (9) questions to resolve.

http://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=bhatul&showQHistory=true

Moondancer - EE Moderator
0
 
twalgraveCommented:
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to TimCottee
Please leave any comments here within the
next seven days.
0
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now