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

請問edit元件可以向DBEdit一樣有editmask的屬性ㄇ??

答題得分者是:yenhorng
yabula
初階會員


發表:47
回覆:117
積分:42
註冊:2002-10-02

發送簡訊給我
#1 引用回覆 回覆 發表時間:2002-11-29 17:43:19 IP:61.220.xxx.xxx 未訂閱
請問edit元件可以向DBEdit一樣有editmask的屬性ㄇ?? 若沒有該如何做ㄋ??
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2002-11-29 19:02:16 IP:202.39.xxx.xxx 未訂閱
參考 Borland 的這篇解答(重點在紅色的部分): Mask edit for TDBEdit controls - by Borland Developer Support Staff Question and Answer Database FAQ1861C.txt   Mask edit for TDBEdit controls Category   :Database Issues Platform    :All Product    :C++Builder  1.x Question: How to I create a mask for a TDBEdit control? Answer: Edit masks are applied to the fields in the table (TField  components) and not in the data controls themselves.  Double-click on the TTable icon and add all the fields you want from your table. When a field is highlighted, its properties show up in the object inspector, including an edit mask. Linking the TDBEdit and any of the other data controls to this dataset will follow the edit mask rules for the fields set this way. 7/2/98 10:32:32 AM -- Everything I say is a lie.
yenhorng
中階會員


發表:12
回覆:82
積分:94
註冊:2002-06-18

發送簡訊給我
#3 引用回覆 回覆 發表時間:2002-11-29 19:27:32 IP:61.61.xxx.xxx 未訂閱
Additional 頁次的 MaskEdit 元件就可了!
ko
資深會員


發表:28
回覆:785
積分:444
註冊:2002-08-14

發送簡訊給我
#4 引用回覆 回覆 發表時間:2002-11-29 19:31:37 IP:163.28.xxx.xxx 未訂閱
試一下用edit.tag來做 當然你要自己設定.tag的數字
------
======================
昏睡~
不昏睡~
不由昏睡~
yabula
初階會員


發表:47
回覆:117
積分:42
註冊:2002-10-02

發送簡訊給我
#5 引用回覆 回覆 發表時間:2002-12-02 09:24:43 IP:61.220.xxx.xxx 未訂閱
感謝yenhorng前輩MaskEdit元件就可以了。
系統時間:2024-04-27 20:09:29
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!