-
Jan 11th, 2000, 07:28 AM
#1
Thread Starter
PowerPoster
Hi
Does anyone know how I can get a message box to display the line of code that caused an error? I've tried things like Err.Source, but that just shows the name of the project (so much help...not!).
If not, then can I get it to at least display the line number...?
Any help much appreciated
Regards,
------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it
-
Jan 11th, 2000, 07:41 AM
#2
Do a search for other posts that dealt with line numbers. If you are debugging and you want to know the offending line, you can put a temporary(!) Resume in your error routine, place a breakpoint on that line, and press f8.
------------------
Marty
-
Jan 11th, 2000, 07:51 AM
#3
Thread Starter
PowerPoster
Martin, thanks. I already searched for things like "Error source" and "line number" and several variants before posting, but nothing really answered my query.
I'm not debugging, it's so end users can simply tell me the line number of the code or the code itself that is causing the error over the phone. They will only have a compiled EXE.
Regards,
------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it
-
Jan 11th, 2000, 09:34 AM
#4
I support several large apps and I have never needed to know the line number of an error. All that I have found to be necessary are meaningful error messages that display the name of the routine the error occurred in, the err.nbr and err.description, etc.
------------------
Marty
-
Jan 11th, 2000, 09:59 AM
#5
Hyperactive Member
As I understand, there are no source codes or lines at all in compiled programms, only the machine's codes.
-
Jan 11th, 2000, 10:01 AM
#6
Thread Starter
PowerPoster
Good point LG! Oh well, i just thought it would be a nice idea that would save me some hassle.
Thanks all
Regards,
------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|