Hi I have this code
Can I write this in a better way. What I do is that I check if zone exists in my collection if it does I also want to check if this is a payzone and if it's not I need to change a parameter that says this row has a zone error.
For Each MyRow As DataRow In dtSource.Rows
If m_Zones.Contains(CStr(MyRo
w("Zones")
)) And Not MyRow("Pay") Is "1" Then
MyRow.Item("ZoneError") = "1"
MyRow.AcceptChanges()
End If
Next
Start Free Trial