Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 11, 2012 01:22 PM by avinash_bhudke
Member
510 Points
989 Posts
Apr 11, 2012 01:19 PM|LINK
How to check the varaible has null value or not in vb.net???
If ((PageNam Is Nothing) And (Content Is Nothing)) Then Debug.WriteLine("Null") End If
Thnx
Contributor
2881 Points
517 Posts
Apr 11, 2012 01:22 PM|LINK
You Could use
If VariableName IsNot Nothing Then .... Or If (VariableName.Equals(System.DBNull.Value) Then ....
Or
If ((IsDBNull(VariableName)) Then
Smadhu
Member
510 Points
989 Posts
How to check the varaible has null value or not in vb.net
Apr 11, 2012 01:19 PM|LINK
How to check the varaible has null value or not in vb.net???
If ((PageNam Is Nothing) And (Content Is Nothing)) Then
Debug.WriteLine("Null")
End If
Thnx
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: How to check the varaible has null value or not in vb.net
Apr 11, 2012 01:22 PM|LINK
You Could use
If VariableName IsNot Nothing Then ....
Or
If (VariableName.Equals(System.DBNull.Value) Then ....
Or
If ((IsDBNull(VariableName)) Then