我并没有特意修改,只是想知道这样的两组代码要实现的目的应该是一样的吧,那么区别是是什么呢?在此请教。
Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("ComboBox30").Value
cmb.ComboList = DataTables("地址信息").GetComboListString("区", "市 = '" & str & "'")
'Dim cun3 As WinForm.ComboBox = e.Form.Controls("村3")
'Dim yzh3 As WinForm.ComboBox = e.Form.Controls("养殖户3")
'Dim yzhbh3 As WinForm.ComboBox = e.Form.Controls("养殖户编号3")
'yzhbh3.combolist = DataTables("养殖户信息").getcomboliststring("养殖户编号", "地址_村='" & cun3.text &"' And 姓名='" & yzh3.text &"'")