O'Reilly logo

ASP.NET by Example by Steven A. Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changes from Previous Versions of VB

Although the advancements to the language make the language more powerful, they do come at a price. Developers now need to design their applications with these new features in mind.

General Changes

The sections that follow present the changes to declarations, variable assignments, and scope. You can save time in writing code and debugging if you are aware of these changes.

Declarations

In previous versions of Visual Basic, multiple variable declarations are permitted within a single statement; however, if the data type of each variable is not specified, the variable defaults to a Variant:

 Dim a As Integer, b As Integer ' a is an Integer, b is an Integer Dim x, y as Integer ' x is a Variant, y is an Integer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required