以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]列出外部数据源nwnd中的所有视图:  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=176948)

--  作者:2900819580
--  发布时间:2022/5/4 12:41:00
--  [求助]列出外部数据源nwnd中的所有视图:

列出外部数据源nwnd中的所有表名:



Dim lst As List(Of String)
lst = Connections("nwnd").所有视图
For Each
nm As String In lst
    Output.Show(nm)

Next


--  作者:wei0769
--  发布时间:2022/5/4 13:27:00
--  

GetTableNames:返回一个字符串集合,包括此数据源所有的表名。
GetViewNames: 返回一个字符串集合,包括此数据源所有的视图名。

示例

列出外部数据源nwnd中的所有表名:

Dim lst As List(Of String)
lst = Connections("nwnd").
GetViewNames
For Each
nm As String In lst
    Output.Show(nm)

Next


--  作者:有点蓝
--  发布时间:2022/5/4 21:39:00
--  
http://www.foxtable.com/webhelp/topics/1943.htm