線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1354
推到 Plurk!
推到 Facebook!

adoquery 置於 datamodule內

答題得分者是:danny
t0288542
中階會員


發表:216
回覆:254
積分:94
註冊:2004-10-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2009-09-04 15:49:12 IP:60.248.xxx.xxx 訂閱
Dear All:

如將 adoquery 置於 datamodule內
AfterInsert 事件 放入
DBGrid1.Columns[0].ButtonStyle := cbsEllipsis;
結果complier出錯錯誤如下
[Error] VFF_MIS_Datamodule.pas(121): Undeclared identifier: 'cbsEllipsis'
請問 如何去設定 ButtonStyle 呢.

thks
danny
版主


發表:100
回覆:522
積分:595
註冊:2002-03-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2009-09-15 18:03:13 IP:122.254.xxx.xxx 訂閱
cbsEllipsis 是定義在 DBGrids.pas 中, 只要  uses DBGrids; 即可
只是你在 datamodule 中使用 DBGrid1 有點奇怪?

===================引 用 t0288542 文 章===================
Dear All:

如將 adoquery 置於 datamodule內
AfterInsert 事件 放入
DBGrid1.Columns[0].ButtonStyle := cbsEllipsis;
結果complier出錯錯誤如下
[Error] VFF_MIS_Datamodule.pas(121): Undeclared identifier: 'cbsEllipsis'
請問 如何去設定 ButtonStyle 呢.

thks
------
將問題盡快結案也是一種禮貌!
t0288542
中階會員


發表:216
回覆:254
積分:94
註冊:2004-10-06

發送簡訊給我
#3 引用回覆 回覆 發表時間:2009-09-18 16:44:31 IP:60.248.xxx.xxx 訂閱
謝謝danny版主。

其實原因是希望在Insert時 再定義 ButtonStyle,麻煩您。
===================引 用 danny 文 章===================
cbsEllipsis 是定義在 DBGrids.pas 中, 只要? uses DBGrids; 即可
只是你在 datamodule 中使用 DBGrid1 有點奇怪?
系統時間:2024-04-27 1:18:10
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!