IsDBnull

Anjumnagpal

Member
Joined
Feb 4, 2009
Messages
15
Programming Experience
Beginner
Can you please explain what is the difference between IsDbnull() method and convert.isDbNull(). Can you explain how do we implement both these methods with the help of examples
 
What does MSDN tell you about both of those? There's also code examples on there as well.

That being said, I usually use an if statement for comparing a value to DBNull.Value:
VB.NET:
If dr("Column") Is DBNull.Value Then
  'Is null
End If
 
Back
Top