VB and a disrespect for NULL?
Posted on 2007-07-25
Is this the best way to limit a NULL problem in vb.net? I consider it really STUPID to deal with a potential null like this. C# rules and vb,,,,, Bad Steve.
For Each oRow As DataGridViewRow In dgRollover.Rows
If oRow.Cells(0).Value Is Nothing Or DBNull.Value.Equals(oRow.Cells(0).Value) Then
If oRow.Cells(0).Value = 1 Then
ii = ii + 1
'MessageBox.Show(" ID # " & oRow.Cells(3).Value & " presented")
Cell(0) is a checkBox in the grid and it it preseted in DATA as a 0 from the server.
So is there a better way in VB that I am mising?