Explicit array range
You can now use an explicit array range to declare an array, such a statement is more clearly readable:
DIM A (10)
As integer
'Old way
DIM B (0
TO 10)
As integer
'New way
The array range in Visual Basic is still started with zero, so if you want to declare an array that is not a range of starting, you will get a compiler error.
summary
Visual Basic 2005 language has achieved some important features and many subtle enhancements, which greatly improves its ease of use and developers' production efficiency. This language has become more perfect, and many of the main features of C # should also better correspond, such as XML annotations and operator overload.
Considering the enhancement features of the Ide ambulatory enumeration, Visual Basic 2005 will be the most powerful version of the Visual Basic's released versions. Not only is enhanced from language characteristics, but also use it to be full of pure fun. The only thing now unfortunately I can't use the Visual Basic 2005 to create an application. You also come to the Beta version, I think you will agree with my point.
Translation
Finish
STAN SCHULTES's "Language Enhancements In Visual Basic 2005" series of articles, I feel that I have finished doing a big thing. I want to thank all the friends who have read these articles and propose all kinds of sharp opinions, thank you!唉 ~~~
No matter how gorgeous rhetoric can't express the love of Visual Basic. I came here in 2005, let us bless her together!
@ 以下 below is the original text for netizens reference @
Explicit Array Bounds
You can now Declare Arrays Using Explicit Array Bounds to Make The Declaration Clearer:
DIM A (10)
As integer
'Old Way
DIM B (0
TO 10)
As integer
'New Way
Array Bounds in Visual Basic Are Still Zero-based, So You'll Get a Compiler Error If The array limited 0.
Conclusion
The Visual Basic 2005 language gains several major features and many smaller enhancements that together provide significant increases in ease of use and developer productivity. The language has become more complete, and there is more parity with C # on major features like XML comments and operator overloading.