Diamond Access控件的奇怪问题??

敏捷的尤金 2000-05-24 07:23:00
在Diamond Access控件中添加
DAODatabase
DAOQuery
DAOTable
DataSource
设置
DataSource.dataset--->>DaoQuery
DAOQuery.sql语句中设置参数edit(string)

在Button1Click 中添加
procedure TForm1.Button1Click(Sender: TObject);
begin
query1.close;
query1.params.parambyname('edit').asstring:=edit1.text;
query1.open;
label1.caption:=inttostr(dbgrid1.DataSource.DataSet.RecordCount);
//返回查询后的数量.
end;

为什么查询结果显示的是当前所看到的DBGrid1的行数.
...全文
75 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fyje 2000-05-25
  • 打赏
  • 举报
回复
open前加上prepare试试
敏捷的尤金 2000-05-25
  • 打赏
  • 举报
回复
我试过不行呀?
Help me !!
功能极其强大的UI控件,适合DotNet全系列使用,效果在这里就不发了,可以去官方网站 www.devcomponents.com 。能够完美模仿Office2007风格,兼之更加强大的可以替代VS.Net自带控件。8.8新增了很多功能,包括 Office2010 样式、Ribbon 等等。 DotNetBar is world's first component to introduce fully featured Office 2010, Windows 7 and Office 2007 style Ribbon controls, first to provide full Windows XP Theme support, first to provide Diamond Docking Guides for dockable windows etc. With DotNetBar you always get latest advancements in user interface technology in your applications before anyone else. Partial list of DotNetBar Ribbon Control features: Office 2010 Styling with new Application Button and Windows 7 and Windows Vista Glass support Office 2010 style Backstage Application Menu Windows 7 Styling Quick Access Toolbar (QAT) support with full customization and placement control Black, Silver and Blue color schemes included Office 2010, Windows 7 and Office 2007 Style Application Button Office 2010, Windows 7 and Office 2007 Style form support Office 2010, Windows 7 and Office 2007 Style popup Galleries Integrated support for Contextual Tabs concept Predefined color schemes for tabs and tab groups Office 2010, 2007 style KeyTips (accelerator keys) both single key and multi-key are fully supported You can create Drop-down menus, even drop-down toolbars are fully supported You can add any standard DotNetBar items to the RibbonControl header One or more tabs can belong to Tab Groups. Tab groups are used to visually group similar tab commands. Usually they are used for contextual tabs that are shown based on active selection and disappear once something else is selected Full control over Tab Group header is provided. It can be hidden, font changed, height changed and appearance completely customized through ElementStyle appearance object (in Office 2003 style) You can add any VS.NET Windows Forms control to a Ribbon tabs. Keyboard Shortcuts are fully supported as well Windows Vista Glass support Custom Office 2010, Windows 7 and Office 2007 style color scheme generator based on single color Intelligent resizing of buttons on the Ribbon to fit the screen size
功能极其强大的UI控件,适合DotNet全系列使用,效果在这里就不发了,可以去官方网站 www.devcomponents.com 。能够完美模仿Office2007风格,兼之更加强大的可以替代VS.Net自带控件。8.8新增了很多功能,包括 Office2010 样式、Ribbon 等等。 DotNetBar is world's first component to introduce fully featured Office 2010, Windows 7 and Office 2007 style Ribbon controls, first to provide full Windows XP Theme support, first to provide Diamond Docking Guides for dockable windows etc. With DotNetBar you always get latest advancements in user interface technology in your applications before anyone else. Partial list of DotNetBar Ribbon Control features: Office 2010 Styling with new Application Button and Windows 7 and Windows Vista Glass support Office 2010 style Backstage Application Menu Windows 7 Styling Quick Access Toolbar (QAT) support with full customization and placement control Black, Silver and Blue color schemes included Office 2010, Windows 7 and Office 2007 Style Application Button Office 2010, Windows 7 and Office 2007 Style form support Office 2010, Windows 7 and Office 2007 Style popup Galleries Integrated support for Contextual Tabs concept Predefined color schemes for tabs and tab groups Office 2010, 2007 style KeyTips (accelerator keys) both single key and multi-key are fully supported You can create Drop-down menus, even drop-down toolbars are fully supported You can add any standard DotNetBar items to the RibbonControl header One or more tabs can belong to Tab Groups. Tab groups are used to visually group similar tab commands. Usually they are used for contextual tabs that are shown based on active selection and disappear once something else is selected Full control over Tab Group header is provided. It can be hidden, font changed, height changed and appearance completely customized through ElementStyle appearance object (in Office 2003 style) You can add any VS.NET Windows Forms control to a Ribbon tabs. Keyboard Shortcuts are fully supported as well Windows Vista Glass support Custom Office 2010, Windows 7 and Office 2007 style color scheme generator based on single color Intelligent resizing of buttons on the Ribbon to fit the screen size

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧