Options in the .NET Convertion Wizard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When i open a VB6 project in .NET, it pops up a conversion wizard, which converts the VB6 code to VB.NET code.
The VB6 code has statments

'On Error Goto ...'
and on completing the conversion,the resulting .NET code has these statements retained. Is there any option to the wizard to convert these type of statements, or do these have to be done manually ?

Thanks in advance.
 
Hi Bande,

Don't let the word 'wizard' fool you. It's bad marketing to talk about
'Conversion Automaton' and 'Project Automaton', 'Class Automaton', etc -
'Wizard' sounds so much zappier. The trouble is that with a Wizard there is an
expectation that is does more than automate some dumb process - you want it to
be clever. But have you ever come across a clever computing 'wizard'? The word
has been dumped on twenty years too soon.

On Error Goto is a pretty complex thing to analyse in general. Wizard,
Shmizard - it needs a human intellect - and that's you. ;-)

Have fun.

Regards,
Fergus
 
Bande said:
When i open a VB6 project in .NET, it pops up a conversion wizard,
which converts the VB6 code to VB.NET code. The VB6 code has
statments

'On Error Goto ...'
and on completing the conversion,the resulting .NET code has these
statements retained. Is there any option to the wizard to convert
these type of statements, or do these have to be done manually ?

Yes, you have to do this manually. I guess you expect the wizard to convert
it to Try-Catch blocks? This process would probably be too complex for the
wizard, or probably it's even impossible to convert it because there is no
1:1 translation for the "old" syntax.
 
Hi Bande,

All that Fergus did write is my idea too.

You will soon see, that while busy with VB.net, you start to delete all dump
statements the wizard did add, because it was not really knowing what your
program has to do, so they did filled it up with almost every posibillity.

When you are used to the "try, catch, end try and finally", and sees that
you can put your own standard procedures in it, which make live even easier,
I am sure that you will think at that moment, why did I had to use that
stuppid dump On Error goto method.

Just a thought,

Cor
 
* "=?Utf-8?B?QmFuZGU=?= said:
When i open a VB6 project in .NET, it pops up a conversion wizard, which converts the VB6 code to VB.NET code.
The VB6 code has statments

'On Error Goto ...'
and on completing the conversion,the resulting .NET code has these statements retained. Is there any option to the wizard to convert these type of statements, or do these have to be done manually ?

Please adjust your newsreader's setting to wrap lines at 76 characters.

What would you expect? Should the error handling code be converted to
'Try...Catch' handlers automatically? This won't work. You will have
to do the conversion by hand.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
 
Back
Top