For those interested...
Jordi Reineman
5th of april:
Microsoft announced today that it's making changes to Visual Basic.NET to make it more compatible with VB6. Details on the changes, outlined below, will be presented at VBITS in Chicago and New York
as well as VSLive! Orlando
While VB.NET includes many features developers have long requested, including inheritance, better threading, and structured error handling, the new features come at the price of changes to VB's core syntax.
Given the tremendous pressure felt throughout Microsoft to ship .NET Framework and Visual Studio.NET, making fundamental changes at this point is a significant concession to core VB users.
These changes will all be implemented in the Visual Studio.NET Beta 2, Ari Bixhorn, Microsoft Visual Basic Product Manager, informed VBITS and VBPJ. Changes include:
*The Value of True: In VB6, when True is coerced to a signed integer, the result is -1. For consistency with other .NET languages, VB.NET was going to change the value of True to 1. Instead, it will be left at -1.
Note that when a True value is passed from VB.NET to other .NET languages, it will be passed as 1.
*Behavior of Boolean Operators: Microsoft intended to change And, Or, Not, and XOr to logical-instead of bitwise-operators, with new operators taking over bitwise duties. These have been restored to their previous functionality, both logical and bitwise, as has operator precedence. In
addition, a planned short-circuiting capability has been removed from these operators, and has been reassigned to new operators: AndAlso and OrElse.
*Declaring Arrays: For consistency with other languages, Microsoft intended to change the way VB declared arrays, so that you would specify the number of elements in the array: Dim a(10) As Integer would create a ten-element array, with an upper bound of 9. This conflicts with the VB style of declaring arrays, where Dim a(10) As Integer creates an eleven-element array with an upper bound of 10. The
traditional declaration technique has been restored.
Says Bixhorn, "These changes are really for [developers] maintaining an existing code base and doing new development. They want consistency.
They don't want to have to look at a line of code and have to remember whether it's correct for .NET or VB6."
According to Bill Vaughn, President of Beta V Corporation and a keynote speaker at this month's VBITS Chicago
"Microsoft is delivering a very powerful toolset in Visual Basic.NET. By responding to feedback from the Visual Basic community, they will provide a more seamless transition from programming in VB6 to Visual Basic.NET."
Sessions on VB.Net's new syntax, new approaches to data access, C#, and the overall .NET architecture are featured at upcoming VBITS and VSLive! events.
VBITS Chicago, April 23-27
800-848-5523 or 650-833-7100
VBITS New York, June 20-23
800-848-5523 or 650-833-7100
There is still time to register by the Super Early Bird Deadline on April 18, save $300 - and the first 200 paid registrants get a free copy of VB Maximizer, an $80 utility by VBITS speaker and VBPJ author Francesco Balena.
VSLive! Orlando, October 9-14
800-848-5523 or 650-833-7100