?
Solved

VB 6 Legacy Mode

Posted on 2006-06-10
6
Medium Priority
?
335 Views
Last Modified: 2010-04-23
I just recently installed a copy of Visual Studio Enterprise Architect and was wondering if there is any sort of VB 6 legacy mode? I need to learn VB 6 in hopes of later converting it into .NET.
0
Comment
Question by:dignified
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 120 total points
ID: 16879544
If you have Visual Studio Enterprise Architect and want to later convert your code to .Net, why not start out with .Net and skip VB6 altogether?

AFAIK, there is no VB6 legacy mode.

Regards,

Wayne
0
 
LVL 9

Expert Comment

by:jrscherer
ID: 16879716
Decide for VB6 or VB.net. Don't mix it up while learning. They are too different for a beginner, even if you would be an experienced C++ or Java programmer
If there is a reason why to learn VB6, focus on this task and uninstall Visual Studio DotNet from your computer.
If you have the choice VB6 of VB.net then go for VB.Net by all means.
Jack.net
0
 

Author Comment

by:dignified
ID: 16879781
The company already has VB 6 code. VB 6 isn't that hard to learn, I just need to take a skills test before hiring and am kinda winging it. I think .NET has a VB 6 converter built in, not sure how well it works.

Some of the things the test will ask is like what is the result of "7" + 3, is it 73 or 10. I'm guessing VB.net works the same in terms of precedence and casting as VB 6. The answer will return 10.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:vb_jonas
ID: 16879787
VB6 Code Advisor is a nice free tool to prepare VB6-programs for VB.Net, and for learning about upgrade-issues. http://msdn.microsoft.com/vbasic/previous/2003/downloads/CodeAdvisor/
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 16880574
Hi dignified,

> Some of the things the test will ask is like what is the result of "7"
> + 3, is it 73 or 10. I'm guessing VB.net works the same in terms of
> precedence and casting as VB 6

Not for everything. Your example here won't even compile in VB.Net if "option strict" is on.

Some other things won't work at all in VB.Net (compared to VB6) like:
MyForm.Show

You now have to create an instance of the form and show this new instance:
dim x as new MyForm
x.show

If you really need to learn VB6, use VB6.

Cheers!
0
 
LVL 44

Assisted Solution

by:Arthur_Wood
Arthur_Wood earned 80 total points
ID: 16880632
Yes, VS.NET has a VB 6 converter, but it is not worth much.  And it only serves to attempt to convert a VB 6 app to .NET.  There is no such thing as VB 6 Legacy Mode in .NET.  The products are very very different, and ther whole approach to application design and development is quite different between the two.  If you learn VB 6, then be prepared for quite a learning curve when you do make the jump to .NET.

While the fundamental SYNTAX of the two languages (and they really are two, separate and distinct languages) is very SIMILAR - note SIMILAR, not the SAME - the specifics of the languages is quite different.  The single biggest difference is that EVERYTHING in .NET is an Object.  Even a variable declared as an Integer, is still an object, and has many Object based Properties and Methods associated with it, since an Integer inherits from the base class Object.

AW
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question