>All .net types have default values. An integer, for example, defaults to 0 ; any object to a null value (Nothing in VB)
>So there is absolutely no difference between 'Dim loRow As DataRow' and 'Dim loRow As DataRow = Nothing' except the warning in the IDE. And it *is* only that - just a reminder that you may have intended to assign a value to it at that point or later. The choice of syntax there can have no bearing on the cause of the error since whether you explicitly assign the null value or let the compiler do it for you the outcome is the same.
Correct, for visually representing better what the property or variable does as well as avoiding those warnings.
>If the error is related to a DataRow you need to look at where it should be assigned an actual value. Maybe you are somehow trying to select a row that doesn't exist?
When this is the case, I would get an object not found. I remember having gotten that one a while ago when a method was returning a different type than what it was defined for. This is what I am trying to see.