Advertisement

08.25.2008 at 04:02AM PDT, ID: 23674875
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Raising error in SUB procedure

Asked by blueskies77 in Visual Basic Programming, VB Database Programming, Visual Basic v1.0.5.x

Tags: , , ,

In my VB6 application I have procedural error handling across the programme, in (almost every procedure) .I'm also using linenumbers throughout the programme so as to catch the error occuring on which line. The error handling has been working great and raising errors in each procedure as they occur and the error handler pops up a box that displays the name of the procedure and the error number. (i'm using the VBDocumentor add-in)>

HOWEVER, I have a user who is experiencing a bug that I cannot reproduce, and the error screenshot she sends me shows the bug occuring on a line of code that calls a subprocedure. INSTEAD of the line of code in the subprocedure where the error is occuring!?

So to restate simpley;
SubA calls SubB , SubB calls other subs (SubC).

The error gets triggered in SubA , on the line calling SubB.
---------------------
For example:

Private sub SubA()
on error goto errhandle
'do code
call SubB  ' ---> *** users error occurs on this line. but not in Lesser sub procedures.. WHY?

errhandle:
call Globalerrhanlder blah, blah, blah

End Sub
--------------
My question is why doesnt the error trap show the actual line of error in the sub procedure rather than the parent procedure? It's like the sub procedure isnt handling the error, but I know it is handling errors because I  tested that by supplying an error coded into program and it flagged it in the sub procedure.

The sub procedure (SUBB)  also calls other procedures, I've checked through them and they also contain their own relevant erorr handling (by sending it to global error handler). If the error did occur in one of these "SUB SUB procedures" then if it couldnt handle the error woudlnt it push it back up the previous Sub procedure. Start Free Trial
 
Loading Advertisement...
 
[+][-]08.25.2008 at 04:58AM PDT, ID: 22304699

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 05:09AM PDT, ID: 22304738

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 05:19AM PDT, ID: 22313710

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 05:21AM PDT, ID: 22313723

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 05:42AM PDT, ID: 22313898

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 05:53AM PDT, ID: 22313999

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 05:57AM PDT, ID: 22314040

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 06:02AM PDT, ID: 22314072

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 06:07AM PDT, ID: 22314119

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 06:12AM PDT, ID: 22314175

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 07:15AM PDT, ID: 22314923

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 10:26PM PDT, ID: 22322062

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 10:31PM PDT, ID: 22322085

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 03:54AM PDT, ID: 22323218

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, VB Database Programming, Visual Basic v1.0.5.x
Tags: microsoft, visual basic, 6, advanced coding, error trapping
Sign Up Now!
Solution Provided By: emoreau
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628