就是点击ADOConnection的ConnectionString属性后,执行“Build”弹出的对话框。我想在代码中直接调用,并获取链接字符串的值。
解决方案 »
- 发现:d2006的inline不是很可靠
- 窗口显示的问题,请各位大侠进来帮帮忙,急!!!
- idhttp与www.google.com的奇怪问题
- 如何用QREPORT做合同?
- 如何将TADOCONNECTION/TADOTABLE/TDBCHART这样的控件做成ACTIVEX控件?
- 急问:关于ocx控件
- datetime如何只取后面的time?
- 有人在吗?请问将控件名称的字串转为指向控件的函数是什么?急急。。。
- 熟悉ListView的大虾来帮忙啊
- 请问如何使edit编辑框里的字靠右?
- 三层结构,在服务器端声明一个方法为何在客户端无法调用?
- 刚刚完成的游戏:国产版“瓶之仙女”[Delphi7+Asphyre3],欢迎拍砖
ADOConnection1.Close;
// calling EditConnectionString displays the dialog, and
// sets the ConnectString property to the resulting value.
if EditConnectionString(ADOConnection1) then begin
//display the resulting ADO Connect String, just for fun.
label11.caption := ADOConnection1.ConnectionString;
end;
if EditConnectionString(ADOConnection1) then
label11.caption := ADOConnection1.ConnectionString;
ADOConnection1.Close;
// calling EditConnectionString displays the dialog, and
// sets the ConnectString property to the resulting value.
if EditConnectionString(ADOConnection1) then begin
//display the resulting ADO Connect String, just for fun.
label11.caption := ADOConnection1.ConnectionString;
end;
————————————————————————————————————
这样写的问题是,在弹出数据链接属性对话框前,会先弹出ADOConnection ConnectionString对话框,我是要直接弹出数据链接属性对话框。
我想直接调用API应该可以,但不知道用哪个API函数?
他的正确。在你要用到数据连接的窗体上写