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

請問如何可以用到別的form的control呢?

尚未結案
BorlandUser
中階會員


發表:148
回覆:217
積分:73
註冊:2004-02-19

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-04-30 09:55:17 IP:203.185.xxx.xxx 未訂閱
有些common control放在在dbmodule到,但想寫個unit去用佢?點做呢?
william
版主


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-04-30 10:01:18 IP:147.8.xxx.xxx 未訂閱
Uses the common unit (controls on form are published).
BorlandUser
中階會員


發表:148
回覆:217
積分:73
註冊:2004-02-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-04-30 10:16:52 IP:203.185.xxx.xxx 未訂閱
Unit TDBModule and Unit CommonFunction TDBModule Unit contain a control and I want the CommonFunction can use it, so how to do it? I don't know what you mean?
william
版主


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

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-04-30 10:40:04 IP:147.8.xxx.xxx 未訂閱
In CommonFunction unit, uses the TDBModule unit before using the control on it.
BorlandUser
中階會員


發表:148
回覆:217
積分:73
註冊:2004-02-19

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-04-30 10:54:32 IP:203.185.xxx.xxx 未訂閱
After that, should I place this code in the common unit? DBModule.Control <-- I try it, but no control when I type ".", just have the class name can be choosen
系統時間:2024-07-05 5:31:36
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!