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