| Author: Anil Kumar Pandey 06 Oct 2008 | Member Level: Diamond | Rating:  Points: 2 |
hi,
try this
For Each message As DataSet1.messageRow In dt ifconvert.Tostring(message.to_user)=="" then 'do something end if next End if
Regards Anil
Thanks & Regards Anil Kumar Pandey
|
| Author: Hamar Kharshiing 06 Oct 2008 | Member Level: Gold | Rating: Points: 1 |
Hi Anil,
It is still givin the same error.
|
| Author: Vivek 10 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
You need to use DBNulll to check database null values.
first retrieve DataSet values in DataRow
then check
If Not IsDBNull(stringValue) Then
// Your Code End If
http://msdn.microsoft.com/en-us/library/tckcces5.aspx http://www.thedatafarm.com/blog/2005/09/09/NullableTypeAndDbNull.aspx
|