Hi there. is there a way of saying "If dbnull.value <> null" in vb.net??
i wanna check if the current field/cell is NOT dbnull
thanks :)
Printable View
Hi there. is there a way of saying "If dbnull.value <> null" in vb.net??
i wanna check if the current field/cell is NOT dbnull
thanks :)
try
VB Code:
If Not IsDBNull(value) Then 'Do something End If
VB Code:
If Not IsDBNull(value) Then End If
OR
VB Code:
If value.tostring = "" Then End If