N
Nathan Sokalski
I have several places in my code in which I use IsNothing(myobject) to test
whether a variable is Nothing. Even though my code compiles and works with
no problems, Visual Studio 2008 is giving me the following warning:
Variable 'ddlYear' is used before it has been assigned a value. A null
reference exception could result at runtime.
Even though it is true that ddlyear has not been assigned a value when I use
IsNothing, isn't that the whole point of using IsNothing? Why does Visual
Studio 2008 give this warning for objects when they are inside of IsNothing?
This is not a high priority or anything I will make a big deal out of, just
wondering if anybody has any comments or suggestions.
whether a variable is Nothing. Even though my code compiles and works with
no problems, Visual Studio 2008 is giving me the following warning:
Variable 'ddlYear' is used before it has been assigned a value. A null
reference exception could result at runtime.
Even though it is true that ddlyear has not been assigned a value when I use
IsNothing, isn't that the whole point of using IsNothing? Why does Visual
Studio 2008 give this warning for objects when they are inside of IsNothing?
This is not a high priority or anything I will make a big deal out of, just
wondering if anybody has any comments or suggestions.