Solved

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

Posted on 2002-03-25
7
182 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

730 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