Changes to Variable Declaration
In addition to Option Strict, which can require variable declarations to include data types, Visual Basic .NET includes a few other changes in the way that variables are declared, the way arrays work, and how objects can be initialized and assigned. As mentioned earlier, the Def[Type] statements (DefInt, DefBool, DefStr, and so on) no longer exist in Visual Basic .NET; it is not possible to create a default data type definition based on the name of the variable.
Multiple Variables Declared Together
The first change is very minor, but has been a long time coming. In Visual Basic 6.0, if you declared multiple variables on a single line you could produce this very correct looking syntax:
Dim X, Y As Integer
Many ...
Get Microsoft® Visual Basic® .NET 2003 Kick Start 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.