全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1120
推到 Plurk!
推到 Facebook!

about dbedit onexit

答題得分者是:william
QOO10
初階會員


發表:59
回覆:89
積分:29
註冊:2002-12-25

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-07 10:02:41 IP:61.229.xxx.xxx 未訂閱
請教各位前輩!!如果讓 dbedit 若輸入不是 '12' 就不可離開?? 我在 onexit 寫判決並 abort;並無用還是到下一個原件??
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-02-07 10:06:34 IP:147.8.xxx.xxx 未訂閱
I think you need to refocus it e.g. DBEdit1.SetFocus;
QOO10
初階會員


發表:59
回覆:89
積分:29
註冊:2002-12-25

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-02-07 10:24:18 IP:61.229.xxx.xxx 未訂閱
引言: I think you need to refocus it e.g. DBEdit1.SetFocus;
謝謝您但無其他方式嗎??好像在 onexit 之前 activecontrol 已離開此 元件!!
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-02-07 10:47:05 IP:147.8.xxx.xxx 未訂閱
I don't think there is other easy way to do it. Perhaps you could perform the validation in the OnChange event and prevent user from entering invalid data?
QOO10
初階會員


發表:59
回覆:89
積分:29
註冊:2002-12-25

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-02-07 11:25:07 IP:61.229.xxx.xxx 未訂閱
引言: I don't think there is other easy way to do it. Perhaps you could perform the validation in the OnChange event and prevent user from entering invalid data?
william 兄謝謝您,那在 onexit 與更換 activecontrol 之間是否有 events??
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#6 引用回覆 回覆 發表時間:2003-02-07 11:43:15 IP:147.8.xxx.xxx 未訂閱
引言:william 兄謝謝您,那在 onexit 與更換 activecontrol 之間是否有 events??
I think the Screen.OnActiveControlChange occurs before the OnExit since ActiveControl will be set before the OnExit. Take a look at the OnActiveControlChange example on the help
QOO10
初階會員


發表:59
回覆:89
積分:29
註冊:2002-12-25

發送簡訊給我
#7 引用回覆 回覆 發表時間:2003-02-07 12:31:42 IP:61.229.xxx.xxx 未訂閱
引言:
引言:william 兄謝謝您,那在 onexit 與更換 activecontrol 之間是否有 events??
I think the Screen.OnActiveControlChange occurs before the OnExit since ActiveControl will be set before the OnExit. Take a look at the OnActiveControlChange example on the help < face="Verdana, Arial, Helvetica"> 謝謝您!!
系統時間:2024-04-30 12:00:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!