Solved

Call Stack in VB Script

Posted on 2006-06-28
5
333 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

840 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