以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助] 怎么获取当前外部数据源的路径?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=148818)

--  作者:wangyinming
--  发布时间:2020/4/15 20:00:00
--  [求助] 怎么获取当前外部数据源的路径?
怎么获取当前外部数据源的路径?

假如我有2个局域网数据源路径,但是想知道现在是哪个数据源的路径。


路径使用Connect.Ini 保存,但是读取文本字符太长

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\ThinkPad\\Downloads\\cs\\Code.mdb;Persist Security Info=False


其实 在TextBox1中 只要显示    C:\\Users\\ThinkPad\\Downloads\\cs\\Code.mdb


Dim File As String = ProjectPath & "Connect.Ini"
e.Form.Controls("TextBox1").Value = FileSys.ReadAllText(File)

--  作者:wangyinming
--  发布时间:2020/4/15 20:24:00
--  
已解决,谢谢!