Dim c1 As WinForm.ComboBox = e.Form.Controls("ComboBox1")
Dim c2 As WinForm.ComboBox = e.Form.Controls("ComboBox2")
Dim c3 As WinForm.ComboBox = e.Form.Controls("ComboBox3")
Dim c4 As WinForm.ComboBox = e.Form.Controls("ComboBox4")
Dim cm As WinForm.ComboBox = e.Form.Controls("ComboBox7")
Vars("btname2")=cm.Text
Tables("主窗体_Table3").DataSource = DataTables(Vars("btname2"))
vars("表名")=c1.Text
vars("获取值集合")=c2.Text
vars("表名1")=c3.Text
vars("获取值集合1")=c4.Text
Dim dr1 As DataRow
Dim s As String
Dim Products As List(Of String)
Products = DataTables(vars("表名")).GetValues(vars("获取值集合"))
For Each Product As String In Products
s= vars("获取值集合1") & "=" & "'" & Product & "'"
dr1 = DataTables(vars("表名1")).Find(s)
If dr1 IsNot Nothing Then '如果找到的话
Else
dr1.DataTable.DeleteFor(s)
End If
Next
错误提示:
.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2020.5.29.8
错误所在事件:窗口,主窗体,比对数据,Click
详细错误信息:
未将对象引用设置到对象的实例。