Foxtable(狐表)用户栏目专家坐堂 → 列出外部数据源中所有表名


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

主题:列出外部数据源中所有表名

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107167 积分:545084 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/6/30 9:07:00 [显示全部帖子]

方法1、
Dim lst As List(Of String)
lst = Connections("数据源名").GetTableNames
    Dim dd1 As WinForm.ComboBox = e.Form.Controls("ComboBox1")
For Each nm As String In lst
    dd1.items.add(nm)
Next

2、
Dim lst As List(Of String)
lst = Connections("数据源名").GetTableNames
    Dim dd1 As WinForm.ComboBox = e.Form.Controls("ComboBox1")
    dd1.ComboList = string.join("|",lst.toarray)

 回到顶部