I have a database where in column there is no value (so it's null
), but I can't handle this in vb.net. I tried with this code:
reader.Read()
If String.IsNullOrEmpty(reader.GetString(0)) Then
Return
Else
tilbulfolderTextBox.Text = reader.GetString(0)
End If
and also with:
If reader.Read() = False Then
and with:
If IsDBNull(reader.Read()) Then
But apparently it doesn't work because I get exception on the statement after the Else
that I can't get Null
values with this method.
I guess you will figure out what I require from the program by reading the code itself.