Obsolete Programming Elements
The following list shows some of the programming elements that have been removed from Visual Basic .NET:
-
AsAny Required all parameters to have a declared data type.
-
Atnfunction Replaced by System.Math.Atan.
- Calendar property
Handled by classes in the System.Globalization namespace.
-
Circlestatement Use methods in the System.Drawing namespace.
- Currency data type
Replaced by the Decimal data type.
-
Datefunction Replaced by the Today property of the
DateTimestructure in the System namespace.-
Datestatement Replaced by the
Todaystatement.- 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.
-
Deftypestatements Not supported.
-
DoEventsfunction Replaced by the DoEvents method of the Application class in System.Windows.Forms namespace.
-
Emptykeyword Replaced by the
Nothingkeyword.-
Eqvoperator Use the equal sign.
-
GoSubstatement Not supported.
-
Impoperator AImpBis logically equivalent to(NotA)OrB.- Initialize event
Replaced by the constructor method.
- Instancing property
Use the constructor to specify instancing.
-
IsEmptyfunction Not supported because the
Emptykeyword is not supported.-
IsMissingfunction Not supported because every optional parameter must declare a default value.
-
IsNullfunction Not supported. The
Nullkeyword is replaced byNothing.-
IsObjectfunction Replaced ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access