Solved

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

Posted on 2002-03-25
7
183 Views
Last Modified: 2010-05-02
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
Comment
Question by:bhatul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 6894366
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
 
LVL 22

Expert Comment

by:rspahitz
ID: 6894824
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
 

Author Comment

by:bhatul
ID: 6896580
Thanks TimCottee and rspahitz.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Expert Comment

by:rspahitz
ID: 6897041
If that answered your question, click Tim's "accept this comment as answer" button.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065796
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
 
LVL 16

Expert Comment

by:twalgrave
ID: 7754691
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
 

Expert Comment

by:SpideyMod
ID: 7811499
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question