没有回答我的问题啊
这段程序用数组或者集合怎么做?
Dim dr As DataRow = e.DataRow
Dim b As Boolean = True
Select Case e.DataCol.Name
Case "No1","No2","No3","No4","No5","No6","No7","No8","No9","No10"
If dr.IsNull("No1") And dr.IsNull("No2") And dr.IsNull("No3") And dr.IsNull("No5") And dr.IsNull("No5") And dr.IsNull("No6") And dr.IsNull("No7") And dr.IsNull("No8") And dr.IsNull("No9") And dr.IsNull("No10") Then
dr("Result") = ""
Else
If dr.IsNull("No1") = False
b = Functions.Execute("ResultAssess",dr("No1"))
End If
If dr.IsNull("No2") = False
b = b And Functions.Execute("ResultAssess",dr("No2"))
End If
If dr.IsNull("No3") = False
b = b And Functions.Execute("ResultAssess",dr("No3"))
End If
If dr.IsNull("No4") = False
b = b And Functions.Execute("ResultAssess",dr("No4"))
End If
If dr.IsNull("No5") = False
b = b And Functions.Execute("ResultAssess",dr("No5"))
End If
If dr.IsNull("No6") = False
b = b And Functions.Execute("ResultAssess",dr("No6"))
End If
If dr.IsNull("No7") = False
b = b And Functions.Execute("ResultAssess",dr("No7"))
End If
If dr.IsNull("No8") = False
b = b And Functions.Execute("ResultAssess",dr("No8"))
End If
If dr.IsNull("No9") = False
b = b And Functions.Execute("ResultAssess",dr("No9"))
End If
If dr.IsNull("No10") = False
b = b And Functions.Execute("ResultAssess",dr("No10"))
End If
If b = True Then
dr("Result") = "OK"
Else
dr("Result") = "NG"
End If
End If
End Select