vb6 to vb.net

W

Wagon

I have an old vb6 application that I would like to convert to .net.
It had a number (ie A LOT) of for loops that start at 1 instead of 0.
Is there a program that can help me automate the processs of rewring
them to make them VB.Net compatibile?
 
G

Greg Burns

I have an old vb6 application that I would like to convert to .net.
It had a number (ie A LOT) of for loops that start at 1 instead of 0.
Is there a program that can help me automate the processs of rewring
them to make them VB.Net compatibile?

VS.NET 2003 has an Upgrade Wizard built-in.

File->Open->Convert

You example really doesn't make sense. Your "for loops" can still start at
1 in the .NET world. :^)

Greg
 
H

Herfried K. Wagner [MVP]

Greg Burns said:
VS.NET 2003 has an Upgrade Wizard built-in.

File->Open->Convert

You example really doesn't make sense. Your "for loops" can still start
at 1 in the .NET world. :^)

Maybe the OP used the loops to iterate over 1-based arrays.
 
G

Greg Burns

Perhaps. If that turns out being his biggest problem upgrading his program
to VB.NET god bless him. :^)

Greg
 
J

Jay B. Harlow [MVP - Outlook]

Wagon,
In addition to the other comments.

This blog entry recently showed up.

http://blogs.msdn.com/pauly/archive/2005/11/16/493617.aspx

I have not used the "VB Migration Assessment Tool" mentioned in the above
blog, however I have used the older "Code Advisor for Visual Basic 6"

http://www.microsoft.com/downloads/...1a-b5c0-4d40-b015-0caa02634fae&DisplayLang=en

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvb600/html/vb6_FixItRuleTool.asp


I would recommend you use the Code Advisor/Migration Assessment tool first.
Make any changes needed.

Then use the Upgrade Wizard second.


FWIW: I have not fully reviewed the above articles.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|I have an old vb6 application that I would like to convert to .net.
| It had a number (ie A LOT) of for loops that start at 1 instead of 0.
| Is there a program that can help me automate the processs of rewring
| them to make them VB.Net compatibile?
 

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