Obsolete Programming Elements
The following list shows some of the programming elements that have been removed from Visual Basic .NET:
-
As
Any
Required all parameters to have a declared data type.
-
Atn
function Replaced by System.Math.Atan.
- Calendar property
Handled by classes in the System.Globalization namespace.
-
Circle
statement Use methods in the System.Drawing namespace.
- Currency data type
Replaced by the Decimal data type.
-
Date
function Replaced by the Today property of the
DateTime
structure in the System namespace.-
Date
statement Replaced by the
Today
statement.- Debug.Assert method
Replaced by the Assert method of the Debug class of the System.Diagonistics namespace.
- Debug.Print method
Replaced by the Write and WriteLine methods of the Debug class of the System.Diagonistics namespace.
-
Deftype
statements Not supported.
-
DoEvents
function Replaced by the DoEvents method of the Application class in System.Windows.Forms namespace.
-
Empty
keyword Replaced by the
Nothing
keyword.-
Eqv
operator Use the equal sign.
-
GoSub
statement Not supported.
-
Imp
operator A
Imp
B
is logically equivalent to(Not
A)
Or
B
.- Initialize event
Replaced by the constructor method.
- Instancing property
Use the constructor to specify instancing.
-
IsEmpty
function Not supported because the
Empty
keyword is not supported.-
IsMissing
function Not supported because every optional parameter must declare a default value.
-
IsNull
function Not supported. The
Null
keyword is replaced byNothing
.-
IsObject
function Replaced ...
Get VB .NET Language in a Nutshell 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.