Welcome to WebmasterWorld Guest from 174.129.127.214

Forum Moderators: ocean10000

Message Too Old, No Replies

what happened to "isNull()"?

how do I test for null in .NET

   
3:08 pm on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



There used to be a VB function isNull().

But in .NET that's gone away and something called DBNull is in it's place, but it's not a comparative.

How do I check for a null value when fetching data? (outer joins and such)

3:16 pm on May 17, 2005 (gmt 0)

10+ Year Member



Try: IsDBNull(strToTest)

Is this what you meant?

4:41 pm on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



that's what I was going for. does that work in .NET? (vb)
8:19 am on May 18, 2005 (gmt 0)

10+ Year Member



It works for me but I admit I haven't really researched it. Its definately different from an empty string though!
8:27 am on May 18, 2005 (gmt 0)

10+ Year Member



If you want to use it as a comparative it's DBNull.Value