There are certain data types in .Net that cannot be null (or Nothing which is the VB.Net keyword). Any number type (ints, doubles, singles, longs, etc) cannot be null. Those values all have a default value of 0 (or 0.0). Assigning Nothing to those variables just sets the value back to the default.
Also, VB.Net is a Strongly Typed language, which mean two things, A) you must specify the type of a variable when its declared, and B) the type of the variable cannot change. So you don't really even have the option to assign a string to that variable either.
Damien Alomar
Also, VB.Net is a Strongly Typed language, which mean two things, A) you must specify the type of a variable when its declared, and B) the type of the variable cannot change. So you don't really even have the option to assign a string to that variable either.
Jul 13, 2010