By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,254 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,254 IT Pros & Developers. It's quick & easy.

Options in the .NET Convertion Wizard

P: n/a

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.

Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Nov 20 '05 #2

P: n/a
"Bande" <an*******@discussions.microsoft.com> schrieb

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.
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #3

P: n/a
Cor
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
Nov 20 '05 #4

P: n/a
* "=?Utf-8?B?QmFuZGU=?=" <an*******@discussions.microsoft.com> scripsit:
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>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.