Do you know of any isnull function buried in a namespace or anywhere. I'm checking data as it comes in from DB. I just want to set it to blank string and to do it faster than take incoming data and .toString it.
Thanks
Printable View
Do you know of any isnull function buried in a namespace or anywhere. I'm checking data as it comes in from DB. I just want to set it to blank string and to do it faster than take incoming data and .toString it.
Thanks
System.DBNull
bah..too slow
To slow, and plus I had time to also put a link in....lol
for setting null value use
not tostring . and there are another checking null values in rows collection of dataset :VB Code:
DBNull.[B]Value[/B]
VB Code:
If MyDataset.Tables(MyTable).Rows(0).IsNull(0) Then MessageBox.Show("No password was configured") 'do this Else 'do this