Obsolete Programming Elements
The following list shows some of the programming elements that have been removed from Visual Basic .NET:
- As Any
All parameters are required to have a declared data type.
- Atn function
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.
- Date function
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.
- DoEvents function
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.
- IsEmpty function
Not supported because the
Emptykeyword is not supported.- IsMissing function
Not supported because every optional parameter must declare a default value.
- IsNull function
Not supported. The
Nullkeyword is replaced byNothing.- IsObject function
Replaced by the ...
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