如何用Button调出ADOQuery的ConectionString设置页
来源:互联网 发布:日内交易精髓 知乎 编辑:程序博客网 时间:2024/06/07 13:42
使用AdoConEd 单元,步骤如下:
在 uses 语句中包含进 AdoConEd 单元。然后在应用程序需要触发 ADO 连接串编辑器的地方写入如下简单代码。
procedure TForm1.Button1Click(Sender: TObject);
begin
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;
end;
在 uses 语句中包含进 AdoConEd 单元。然后在应用程序需要触发 ADO 连接串编辑器的地方写入如下简单代码。
procedure TForm1.Button1Click(Sender: TObject);
begin
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;
end;
- 如何用Button调出ADOQuery的ConectionString设置页
- android Button如何用代码设置background
- 如何用dos命令行调出任务管理器?
- 如何用photoshop调出梦幻冷色调
- phpcms v9 如何用PC标签在列表页中同时调出文章内容
- 如何用JavaScript去触发Button的Click事件
- Unity中Button的颜色如何用脚本改变
- 如何用button触发fileupload控件的click事件
- 如何用"百分比"设置页面的高度
- 如何用C#设置IE的代理
- 如何用C#设置IE的代理
- 如何用ASP实现权限的设置?
- Android studio中如何用快捷键快速调出try catch
- 如何用JS设置cookie
- 如何用win32的函数调节设置Unity的窗口
- 如何用javaScript设置文本框的背景色
- 如何用代码设置滚动条的位置?
- 如何用代码设置滚动条的位置?
- 读《任正非在2012实验室的讲话》总结
- iPhone开发--Unresolved Symbols CAKeyframeAnimation : iOS Animation
- 用1、2、2、3、4、5这六个数字,写一个main函数,打印出所有不同的排列, 如:512234、412345等,要求:"4"不能在第三位,"3"与"5"不能相连.
- Lucene学习总结-索引
- 【双向链表】 hdu4286 Data Handler
- 如何用Button调出ADOQuery的ConectionString设置页
- BAT命令高级技巧
- WCF 应用概念
- Java study 10day--finally与异常处理语句格式
- Java study 10day--异常-覆盖时的异常特点
- 【redis】命令汇总
- POI读取EXCEL教程
- ARM汇编语言(9) CP15
- 9.10 JSP