Link to home
Start Free TrialLog in
Avatar of dignified
dignified

asked on

VB 6 Legacy Mode

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.
ASKER CERTIFIED SOLUTION
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of dignified
dignified

ASKER

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.
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/
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!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial