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.


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

Get ASP.NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.