You can now declare an array using an explicit array range, and the declaration is more readable:
Dim A (Ten) as Integer ' old way
Dim B (0 to ten) as Integer ' New way
The array range in Visual basic still starts with zero, so if you want to declare an array that is not a zero-based range, you get a compiler error.
Summary
The Visual Basic 2005 language has acquired some important features as well as a number of minor enhancements that greatly improve usability and productivity for developers. This language has become more sophisticated and is better aligned with many of the main features of C #, such as XML annotations and operator overloading.
Taking into account the numerous enhancements on the IDE, Visual Basic 2005 will be the most powerful of all of the released versions of Visual Basic. Not only has the language feature been enhanced, but it is simply fun to use. The only thing I'm sorry for now is that I can't create a production application using Visual Basic 2005. You might as well try the beta version, and I think you'll agree with me.
Translation PostScript
After the translation of Mr. Stan Schultes's Language enhancements in Visual Basic 2005 series, he felt that he had finally done something big. Here, I would like to thank all of you to shed tears to read these articles and put forward a variety of sharp views of netizens, thank you! Alas, no matter how gorgeous the rhetoric can not express the love of Visual Basic. 2005 has come, let us bless her together!
@ Below is the original text for users to reference @
Explicit Array Bounds
can now declare arrays using explicit array bounds to make the declaration clearer:
Dim A (Ten) as Integer ' old way
Dim B (0 to ten) as Integer ' New way
Array bounds in Visual Basic are still zero-based, so you'll get a compiler error if the array lower bounds value isn ' t 0.
Conclusion
The Visual Basic language gains several major features and many smaller enhancements that together provide Significan T increases in ease and developer productivity. The language has become more complete, and there are more parity with C # on major features like XML comments and operator O Verloading.
Coupled with a myriad of the IDE enhancements, Visual Basic, "poised to", "Best version of Visual Basic ever release D. Not only better from a language feature standpoint, but it's also a sheer joy to use. I ' m disappointed only because I can ' t builds production applications with the Visual Basic. Give the Beta version a try, and I'll agree.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.