Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("用户ID").TEXT
cmb.ComboList = DataTables("员工信息").GetComboListString("姓名", "ID = '" & str & "'")
Dim cmb As WinForm.ComboBox = e.Form.Controls("用户ID")
Dim str As String = cmb.Value
cmb.ComboList = DataTables("员工信息").GetComboListString("姓名","ID = '" & str & "'")
这两段代码,第二种写法,是不是错了?我测试,第一种写法,正常显示,第二种不正确显示列表项目。
[此贴子已经被作者于2021/3/18 22:30:36编辑过]