"Chris Dunaway" <du******@gmail.com> schrieb:
You might be able to set VS up to flag that as a warning in the IDE.
Check the compile properties for the project and see if it will let you
do this.
ACK, this should work (and is the default behavior) in VS 2005. However, I
have turned off the warning because I find the warning useless in 99 % of
its occurances. 'Dim x As Integer' is simply the same as 'Dim x As Integer
= Nothing', with 'Nothing' referring to the type's default value which is 0
in VB, and thus equivalent to 'Dim x As Integer = 0'. So why type 'Dim x As
Integer = 0' if 'Dim x As Integer' is already doing that?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>