Foxtable(狐表)用户栏目专家坐堂 → [求助]符合条件 显示列表框


  共有20547人关注过本帖树形打印复制链接

主题:[求助]符合条件 显示列表框

帅哥哟,离线,有人找我吗?
don
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:八尾狐 帖子:1812 积分:12999 威望:0 精华:14 注册:2008/10/11 18:07:00
  发帖心情 Post By:2009/5/3 10:15:00 [显示全部帖子]

Dim lst As WinForm.listBox = e.Form.Controls("ListBox1")
Dim T,Tj,str1,str2 as string
str1  = e.Form.Controls("ComboBox1").Value
str2  = e.Form.Controls("ComboBox2").Value
Tj = "工程名称 = '" & str1 & "'and 物料大类 = '" & str2 & "'"

Dim Arys As List(Of String())
Arys = DataTables("基本信息").GetUniqueValues(Tj, "物料名称","物料规格","物料型号")

For Each Ary As String() In Arys
    T = T & "|" & Ary(0) & "," & Ary(1) & "," & Ary(2)
Next

lst.combolist = T


 回到顶部