Welcome to WebmasterWorld Guest from 54.196.175.173

Forum Moderators: ocean10000

Message Too Old, No Replies

what happened to "isNull()"?

how do I test for null in .NET

     

txbakers

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)

Mr_Brutal

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

10+ Year Member



Try: IsDBNull(strToTest)

Is this what you meant?

txbakers

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)

Mr_Brutal

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!

Jimmy Turnip

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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month