homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

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



 
Msg#: 2736 posted 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

10+ Year Member



 
Msg#: 2736 posted 3:16 pm on May 17, 2005 (gmt 0)

Try: IsDBNull(strToTest)

Is this what you meant?

txbakers

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



 
Msg#: 2736 posted 4:41 pm on May 17, 2005 (gmt 0)

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

Mr_Brutal

10+ Year Member



 
Msg#: 2736 posted 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

10+ Year Member



 
Msg#: 2736 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved