• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

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

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
tesla764
Asked:
tesla764
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
MattiCommented:
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
 
tesla764Author Commented:
Thanks, that is very helpful.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now