Solved

Call Stack in VB Script

Posted on 2006-06-28
5
328 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
Comment Utility
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 ]
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now