Solved

vb6 On Error Resume Next enforcement throughout the whole vb project (Global)

Posted on 2014-03-24
3
451 Views
Last Modified: 2014-03-24
Is there a way to enforce "On Error Resume Next" throughout the whole vb project (Global) ?  So that if any Run-time errors are encountered the system will keep running instead of coming to a complete end.
0
Comment
Question by:tesla764
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 39950614
as by the specs:
http://msdn.microsoft.com/en-us/library/aa266173%28v=vs.60%29.aspx
Enables an error-handling routine and specifies the location of the routine within a procedure; can also be used to disable an error-handling routine.

and as far as I know, there is no such thing for the full project ...
you have to add this line for each procedure/function
0
 
LVL 14

Assisted Solution

by:Matti
Matti earned 250 total points
ID: 39950645
There is no global option in this, need to paste On Error Resume Next  on first line on every sub and event and function.  This kill all error handling, compiller might have better options to do it global as I assume there is some unexplained problem now. Note that this program can not in most cases be ported to .NET as structures are different like catch...try are error handling locig.

Matti
0
 

Author Closing Comment

by:tesla764
ID: 39950667
Thanks, that is very helpful.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

623 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