ITworld.com
  Search  
ITworld Home Page ITworld Webcasts ITworld White Papers ITworld Newsletters ITworld News ITworld Topics Careers ITworld Voices ITwhirled Changing the way you view IT

Moving to Visual Basic.Net

InfoWorld 3/16/01

Maggie Biggs, InfoWorld

Microsoft's Visual Basic is about to sprout some powerful legs this year in the form of Visual Basic.Net. Companies planning to adopt Visual Basic.Net will be able to leverage application capabilities, such as inheritance, that were previously confined to other languages, C++ for example. But the move to Visual Basic.Net is not merely a programming language upgrade; developers who have expertise in Visual Basic 6 will need to learn major new programming concepts.

On this topic

Business leaders face the tough choice of whether to migrate or rewrite existing Visual Basic 6 applications using Visual Basic.Net or to adopt a different business application development platform altogether, such as Java. Either choice will require a sizable investment in both developer coding and training.

If your company has invested in the Windows platform as its primary application-serving vehicle and doesn't see a strategic need to deviate from that, then investing in Visual Basic.Net is a good choice. On the other hand, if your company's application needs will potentially outgrow Microsoft technologies, then this may be a good time to perform a cost/benefit analysis that includes other platform choices.

Decisions to rewrite business applications using Visual Basic.Net will require a significant amount of work. IT directors will want to redesign applications to leverage the powerful capabilities that Microsoft has introduced with Visual Basic.Net. This means that your company will need to invest in another round of design, coding, testing, and developer training that should be viewed as a long-term effort toward a successful implementation.

Developer tips

IT managers and development teams should begin a series of projects that examine their existing Visual Basic 6 code with an eye toward forthcoming changes.

1. Get business logic out of forms. Applications that contain business logic at the form layer will not easily migrate to Visual Basic.Net. Move the logic into components and classes for a smoother transition.

2. Get SOAPed up. Take a look at Microsoft's SOAP (Simple Object Access Protocol) implementation, as it will enable Visual Basic.Net objects to interact via the Web.

3. Don't use currency and variant types. Visual Basic.Net will not support these types. Use decimal types instead of currency. Visual Basic.Net will replace variants with support for object types.

4. Check your arrays. Visual Basic.Net supports only zero-based arrays. Change existing arrays to be zero-based to make the transition easier.

5. Don't use default properties. Visual Basic 6 saves you time by letting you access the default properties for an object. In contrast, Visual Basic.Net requires that you explicitly define the property, function, or method you want to use. Existing objects should be inspected and explicitly defined.

6. Check for obsolete keywords. Visual Basic has, until now, carried backward support for QuickBasic-compatible keywords. With Visual Basic.Net, that support goes away, so locate any of the keywords that will become obsolete and remove them from your code.

7. Watch out for variable declarations. In Visual Basic 6, you can declare a variable anywhere in a routine, and it will be available. Visual Basic.Net introduces the concept of block-scope, which changes variable declaration. The easiest way to grapple with this change is to declare all variables at the top of a routine.

8. Change your form-loading process. In Visual Basic 6, a load is formed by merely referring to it. With Visual Basic.Net, you'll need to declare a form variable, instantiate it, and then show it.

9. Expect conditionals to be processed differently. Both parts of a conditional are evaluated in Visual Basic 6, but because Visual Basic.Net shares a common run time with other languages, it handles Boolean logic differently. For example, if the first part of a conditional is false in an AND operation, the second part of the conditional will not be evaluated.

10. Simulate the enhanced use of inheritance and object concepts. Get a jump on learning the object-oriented concepts supported in Visual Basic.Net. Look for materials that discuss how to simulate the way Visual Basic.Net will treat concepts, such as inheritance, using Visual Basic 6.

Next steps

Those are but a few things Visual Basic developers need to consider as they prepare for Visual Basic.Net. Because no additional effort will be required to adopt a new application development strategy, now is a good time to reevaluate your company's commitment to Microsoft's Visual Basic programming language.

010319tcvb

Ensuring the future of Visual Basic applications

1. Decide whether to migrate or rewrite applications for Visual Basic.Net or to move to another platform.

2. Inspect your code and make changes with your future platform in mind.

3. Invest in developer training to get up-to-speed on new concepts.

4. Redesign, migrate or rewrite, test, and implement your new applications.




Sponsored Links

Multi-Core Test Results In Virtualized Servers
Check Out The Latest Xeon® Performance Results. Virtualized Servers vs. Non-Virtualized Servers.
IT HelpDesk & Customer Support Software
Internal IT HelpDesk Software with Asset Mgmt. Customer Support Software with Account & Contact Mgmt
TOSHIBA SATELLITE PRO Notebook – Save With Synnex!
SYNNEX RESELLERS - Great Deals On Toshiba. Business Computing Has Never Been More Affordable!
FREE Application Discovery Tool from Sophos
Scan your network for VoIP, IM, games and other potentially unwanted applications.
FREE virus, spyware & adware scan
Find the malware your AV missed with the Sophos Threat Detection Test.
» Buy a link now

Advertisements
Sponsored links
Top 5 Reasons to Combine App Performance and Security
KODAK i1400 Series Scanners stand up to the challenge
Bring harmony to your mix of UNIX-Linux-Windows computing environments
Locate Hidden Software on business PCs with this free tool
 Home   Application Development  Programming tools  Programming languages  Visual Basic
www.itworld.com    open.itworld.com     security.itworld.com     smallbusiness.itworld.com
storage.itworld.com     utilitycomputing.itworld.com     wireless.itworld.com

 
Contact Us   About Us   Privacy Policy    Terms of Service   Reprints  

CIO   Computerworld   CSO   GamePro   Games.net   IDG Connect   IDG World Expo   Industry Standard   Infoworld   ITworld   JavaWorld   LinuxWorld  MacUser   Macworld   Network World   PC World   Playlist  

Copyright © Computerworld, Inc. All rights reserved

Reproduction in whole or in part in any form or medium without express written permission of Computerworld Inc. is prohibited. Computerworld and Computerworld.com and the respective logos are trademarks of International Data Group Inc.