[thelist] ASP.NET Weird If-Then thing with Is Nothing
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Thu Aug 11 12:41:34 CDT 2005
Heh... I didn't realize that "sdr" was your naming convention for "SqlDataReader" :)
If sdrDocs("Address2").Equals(System.DBNull.Value) Then
should do it...
From: "Casey" aspnet at thecrookstons.com
----- Original Message -----
From:
> I don't know about VB.NET, but in VBScript Nothing and Null are two
> different things. Have you tried something along the following lines:
>
> strAddress2 = sdrDocs("Address2")
>
> bIsBadValue = IsNull(strAddress2)
I think isNull became null is VB.NET, but what you are saying makes sense.
How would I distuniguish between Null and Nothing in VB.NET?
More information about the thelist
mailing list