homepage Welcome to WebmasterWorld Guest from 54.205.160.82
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
what happened to "isNull()"?
how do I test for null in .NET
txbakers




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

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




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

Try: IsDBNull(strToTest)

Is this what you meant?

txbakers




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

that's what I was going for. does that work in .NET? (vb)

Mr_Brutal




msg:950560
 8:19 am on May 18, 2005 (gmt 0)

It works for me but I admit I haven't really researched it. Its definately different from an empty string though!

Jimmy Turnip




msg:950561
 8:27 am on May 18, 2005 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved