Language Changes

Compared to the sweeping changes to the Visual Basic language brought about by the first release of the .NET Framework, the changes to version 1.1, although beneficial, are minor. There are two changes: an easier way to declare a loop variable, and the use of BitShift operators.

Loop Variable Declaration

In Visual Basic .NET, you can now easily declare a loop variable as part of a For or For Each loop. This makes coding For Each loops much easier, as you don’t have to declare the variable before entering the For Each loop. Here’s an example:

Dim sqlDA As New SqlDataAdapter( _ "select firstname, lastname from employees", scnnNorthwind) Dim dsEmployees As New DataSet sqlDA.Fill(dsEmployees) Dim sb As New StringBuilder Dim fullName ...

Get 101 Microsoft® Visual Basic® .NET Applications 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.