all groups > vb.net upgrade > may 2006 >
You're in the

vb.net upgrade

group:

error handling


error handling Brahm
5/25/2006 5:39:17 PM
vb.net upgrade:
Hey Guys!

I am moving from vb6 to vb2005

I was using:

on error go lbl_error:

code..
code..

exit sub or function
lbl_error:
.code
code
but it vb 2005 we have
try.. catch.. finally end try.

In your opinion wich is better for performance and code reading ?

Daniel

RE: error handling Ken Tucker [MVP]
5/28/2006 10:06:02 AM
Hi,

I prefer try catch finally. You can have more that catch blocks to
handle different types of exceptions.

Ken
------------------------------------

[quoted text, click to view]
AddThis Social Bookmark Button