>I have converted a large vb6 program with an add-in that for every routine
> gimme
[quoted text clipped - 7 lines]
> working in
> .net is it right? what's the difference from exception handling?
There are several differences.
One of them is, exception handling organizes your code in a more
stringent way - it is known at compile time which error handler will
apply to a piece of code, which eliminates hazards of forgetting to
reset error handling after temporary changes.
Another difference is, exception handling allows an easier filtering of
errors, with handling for exception classes.
Third, cleanup operations are safer and easier with the "finally" thing.
> if exception handling is better like i think how can i do to pass from
> errhandling to excection handling?
This depends on how err handling is used, I don't think there is a
general recipy. However, if most of your error handling is automatically
inserted by mentioned add-in, converting should be no big deal.
You might want to remove all the auto-inserted error handling
for easier spotting of manually inserted error handling that needs
manual conversion.
> Some times i use on error resume next has got
> handling exception an equivalent?
I think the strict equivalent of "resume next" would be to place each
of the affected code lines in its own try-catch clause.
But you would probably want to wrap only those code lines that
are expected to throw errors, and you should catch only the
errors you expect - so unexpected errors will still show up as
message boxes or log entries or whatever you do with them.