D dcx0026 Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-12 #4 ShellExecute(0, nil, 'c:/a.udl', nil, nil, SW_NORMAL);<br>可以呀,<br>环境:xp + d7
K kaida Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-13 #6 uses AdoConEd;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> ADOConnection1.Close;<br> if EditConnectionString(ADOConnection1) then begin<br> label1.caption := ADOConnection1.ConnectionString;<br> end;<br>end;
uses AdoConEd;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> ADOConnection1.Close;<br> if EditConnectionString(ADOConnection1) then begin<br> label1.caption := ADOConnection1.ConnectionString;<br> end;<br>end;
N nywh Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-14 #7 str :=PromptDataSource(application.Handle,'')<br>返回的是str,''里面是默认数据库连接字符串
D deardai Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-16 #9 用ShellExecute是可以的,不過要先在資料夾選項中把udl的打開方式改為記事本,