troubleshooting Question

VB and a disrespect for NULL?

Avatar of srussell705
srussell705 asked on
.NET Programming
9 Comments2 Solutions206 ViewsLast Modified:
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
            Else

                If oRow.Cells(0).Value = 1 Then
                    ii = ii + 1
                    'MessageBox.Show(" ID # " & oRow.Cells(3).Value & " presented")
                    CCProcess.RollTransaction(oRow.Cells(3).Value, Me.DateTimePicker1.Value)

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?

TIA
 
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros