doubts in Porting from VB6 to VB.NET

P

Prashant Taleda

I used a convert wizard to upgrade a vb6 project to
VB.Net

The On error Goto code is left as is. Is there a way to
convert it to try-catch-finally blocks automatically in
the wizard?
 
R

Robert

Hi Prashant,

First the wizard doesn´t convert this automatically
because VB.Net supports both error handlers. Secondly
there is no simple conversion due to the complexity and
differences between both handlers. Microsoft simply
leaves it up to you!

Success,
Robert.
 
H

Herfried K. Wagner [MVP]

* "Prashant Taleda said:
I used a convert wizard to upgrade a vb6 project to
VB.Net

The On error Goto code is left as is. Is there a way to
convert it to try-catch-finally blocks automatically in
the wizard?

The best way is to rewrite the complete application by hand.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top