Solved

VB 6 Legacy Mode

Posted on 2006-06-10
6
331 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
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Need help making a program or form for inventory that exports to txt 8 43
Regex validation 2 28
Store results in vb.net 3 24
Get month and date in a format 4 31
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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