Solved

VB 6 Legacy Mode

Posted on 2006-06-10
6
333 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 30 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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 20 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

Independent Software Vendors: 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!

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

695 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