Solved

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

Posted on 2014-03-24
3
425 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
3 Comments
 
LVL 142

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

762 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

19 Experts available now in Live!

Get 1:1 Help Now