Solved

Call Stack in VB Script

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add contact name to VBA code to automate emails in outlook using a Template 11 79
VBS file using code from 2nd file (txt or vbs) 4 36
Hide vba in gp 7 94
MsgBox 4 59
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

776 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