Language Compatibility
The differences between the VBScript used in ASP and the Visual Basic .NET language used in ASP.NET are by far the most extensive of all the potential migration issues. Not only has ASP.NET departed from the VBScript language to "true" Visual Basic, but the Visual Basic language itself has undergone significant changes in this release. The changes are designed to:
- Make the language more consistent by bringing together features of the language with similar purposes.
- Simplify the language by redesigning the features that made Visual Basic less than "basic."
- Improve readability and maintainability by redesigning features that hid too many important details from the programmer.
- Improve robustness by enforcing better practices, such as type-safe programming.
This section highlights some common issues you are likely to encounter when you begin to use the new Visual Basic language.
Note: There are many additional differences between Visual Basic 6 and Visual Basic .NET. Consult the language documentation for more information.
- The differences between the VBScript used in ASP and the Visual Basic .NET language used in ASP.NET are by far the most extensive of all the potential migration issues. The changes have been made to simplify the language and improve consistency, readability, maintainability, and robustness.
- Set and Let assignments are no longer supported in Visual Basic .NET. Use standard variable assignment instead.
- Non-indexed default properties are not supported in Visual Basic .NET. Indexed default properties are still supported.
- Parentheses are required for calling subroutines in Visual Basic .NET.
- The new default is by-value arguments. You can still use by-reference arguments by explicitly using the
ByRef modifier.
Copyright 2001 Microsoft Corporation. All rights reserved.