473,802 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Options in the .NET Convertion Wizard


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
4 1222
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
"Bande" <an*******@disc ussions.microso ft.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
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
* "=?Utf-8?B?QmFuZGU=?=" <an*******@disc ussions.microso ft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2198
by: Petr Studenovsky | last post by:
Hello I made small GUI test program in Visual Basic NET for SQL communication. I need some help with these problems. problem 1) If I change some settings in datagrid from properties window (e.g. background color). my datatest is removed. I compared it with diff program and it reorganized all source code.
0
1405
by: Konstantin Kivi | last post by:
I have problems getting character set convertion to work in 4.1.4 gamma under linux. Can sombody point me to the online recource other than standard MySQL doc so that I get more information.
0
1242
by: Ryan | last post by:
Hello. I am working on an OLAP tutorial for Data Analysis in SQL Server 2000. I have worked through nearly 2 full tutorials and came across a problem. When trying to create a Parent-Child Dimension with the wizard, I select the tutorial file and click Next. On the Select Advanced Options step there is no Writeback option available. The only options I have are: Custom Rollups, Members with data, and Ordering and uniqueness of members. When...
1
1632
by: Vidar | last post by:
I have a problem in dotNET XSL convertion object. (XMLTRANSFORM) It won't convert UTF-8 to ISO-8859-1 I use this stylesheet for konvertion: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- For convertion from UTF-8 to ISO-8859-1 CaracterSet --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
2102
by: juli | last post by:
Good afternoon! I have an error while trying to convert to DateTime ,here is the code and the error: ArrayList al = new ArrayList(); temp_str=Line.Split(' '); al.Add(temp_str); // value="11/02/2004" al.Add(temp_str); // value="10:53:10" temp_str2=(string)al.ToArray(typeof(string));
2
1454
by: Jon Paal | last post by:
-- Testing Visual Web Developer and sql server 2005 express to create and populate a datagrid In the sql server configuration wizard for a datagrid, I am trying to get the update code to be generated through the "advanced" SQL server generation options, but when the the options dialog appears the checkboxes are dimmed out. How do I enable these options ?
7
1919
by: Lucas Tam | last post by:
Hi all, What is the best way to do this: -I have a form, that has a couple of options (paths through the program), A, B, and C. -Each option has it own set of displays In essence I have:
4
2716
by: Laphan | last post by:
Hi All I know that if SQL 6.5 was on a server and you then install SQL 2000 on it you get the wizard option to upgrade an SQL 6.5 DB to 2000, but I don't have the luxury of this. I have an SQL 6.5 DB, which I want to convert, but only SQL 2000 on my server. Do you know what options I have available to me to perform this upgrade with
3
1532
by: Tyler | last post by:
In the combo box wizard there are typically 3 options, the last one being to find a record based on the selction in the combo box. Nevertheless, sometimes when I try to add a combo box the third option is not present. What am I doing wrong? Thanks.
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10304
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.