It took me a while to figure that that you can say:
If var1 IsNot Nothing Then
...
End If
Instead of the awkward:
If Not var1 is Nothing Then
...
End If
Of course the IsNot is like the Is and will work with when comparing any two object references, not just for testing for Nothing.
8 comments:
Exactly what I was looking for. Thanks.
thanks for sharing this.
Thanks that was a big help!!
Perfectttt explanation!!! THANKS!
Perfect explanation! THANKS
Thanks, appreciated. "If Not X Is Nothing" is kind of a clunky way of writing things!:)
"If X IsNot Nothing" is much better.
Nice information
Free Auto typing, I hope you like it
http://sourcecode-world.blogspot.com/
thanks have been searching for this. SUPER USEFUL!!
Post a Comment