I have a function call that passes a value from a dataset field:
myFunction(ds.Tables(0).Rows(0)("myField").ToStrin g)
The function then receives this:
myFunction(ByVal myValue as string)
and then I try to evaluate that value to see if it containes any characters:
if myValue <> "" then
At this point, I get the "Object reference not set to an instance of an
object"
And I don't know why.
My guess is that my call, when the field is null, is not passing an empty
string, but rather some sort of null value?
But I can't check for isnull on a string. So I'm stumped.
Thoughts?
-Darrel