Solved

Call Stack in VB Script

Posted on 2006-06-28
5
334 Views
Last Modified: 2010-04-07
I have an application that utilizes VB Script.  I have a sub that catches any errors and sends a screen print to myself for troubleshooting.  However, it doesn't neccessary tell me what sub or function is having the issue.  I would like to be able to display the call stack on the email that I am sending.  Anyone familiar with how I can display the call stack in VB Script?
0
Comment
Question by:huskeraz
[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
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 17005661
As there is no in-built method of retrieving the call stack, perhaps these PAQs (some of which I have contributed to) will be useful to you?...

"Detect VBA Subroutine or Function Caller"
[ http://www.experts-exchange.com/Applications/MS_Office/Excel/Q_21230726.html ]

"Identify Sub/Function where error occured"
[ http://www.experts-exchange.com/Applications/MS_Office/Excel/Q_20924414.html ]

"find the current running procedure"
[ http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20878172.html ]

"VB6: Exiting the call stack"
[ http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21451592.html ]


Also see:

"Sub, Function, or Method get it's own name???"
[ http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21708598.html ]

and

"VB6 Way of reading the stack"
[ http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21689277.html ]



BFN,

fp.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 17294918
Hi Dan,

Although, obviously, somewhat one-sided, I would like to think that from the links I provided there were sufficient methods & discussions to address this question, and hence my comment should be considered as the accepted answer.

Thanks for your time in resolving these seemingly abandoned questions.

BFN,

fp.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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