Foxtable(狐表)用户栏目专家坐堂 → 下拉框问题


  共有1500人关注过本帖平板打印复制链接

主题:下拉框问题

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/2/24 12:39:00 [只看该作者]

Dim dt1 As DataTable = DataTables("表A")
Dim dt2 As DataTable = DataTables("表B")
Dim ls As new List(Of String)
For Each dr As DataRow In dt1.datarows
    If ls.Contains(dr("第一列")) = False Then
        ls.add(dr("第一列"))
    End If
Next
For Each dr As DataRow In dt2.datarows
    If ls.Contains(dr("第一列")) = False Then
        ls.add(dr("第一列"))
    End If
Next
Dim str As String = String.Join("|", ls.ToArray)
msgbox(str)
Tables("表C").cols("第一列").ComboList = str

 回到顶部