How can I check if a variable is Null
?
I already tried with:
If a Is null Then
'a tiene valor nulo
Else
'a es diferente de valor nulo
End If
How can I check if a variable is Null
?
I already tried with:
If a Is null Then
'a tiene valor nulo
Else
'a es diferente de valor nulo
End If
To validate the value
null
in VB.net, it is usedNothing
that it basically represents the default value of the data type that is being used. validation would beYou could also use the IsNullOrEmpty method of the String class.