Dim pr As DataRow For Each dr1 As DataRow In DataTables("数据").DataRows For i As Integer = 1 To 12 If dr1.IsNull("职务_" & i) Then dr1("系数_" & i) = Nothing Else pr = DataTables("设置").Find("职务 = '"& dr1("职务_" & i) & "'") If pr IsNot Nothing Then dr1("系数_" & i) = pr("系数") Else dr1("系数_" & i) = Nothing End If End If Next Next