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

initialization 的問題.

答題得分者是:william
jessechan
版主


發表:109
回覆:394
積分:254
註冊:2002-04-05

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-08-25 15:37:19 IP:203.67.xxx.xxx 未訂閱
小弟對 Delphi 不熟, 今天看一段 Delphi 的 source code. http://delphi.ktop.com.tw/download/upload%5C36294_ExeMod.pas 發現有一段碼是寫在 initialization 中, 請問這是 Delphi 內定的模組還是什麼東東?    Jesse Chan
------
Jesse Chan
william
版主


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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-08-25 15:49:14 IP:147.8.xxx.xxx 未訂閱
Quoted from Delphi help: The initialization section is optional. It begins with the reserved word initialization and continues until the beginning of the finalization section or, if there is no finalization section, until the end of the unit. The initialization section contains statements that are executed, in the order in which they appear, on program start-up. So, for example, if you have defined data structures that need to be initialized, you can do this in the initialization section. For units in the interface uses list, the initialization sections of units used by a client are executed in the order in which the units appear in the client's uses clause.
jessechan
版主


發表:109
回覆:394
積分:254
註冊:2002-04-05

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-08-25 16:17:40 IP:203.67.xxx.xxx 未訂閱
引言: Quoted from Delphi help: The initialization section is optional. It begins with the reserved word initialization and continues until the beginning of the finalization section or, if there is no finalization section, until the end of the unit. The initialization section contains statements that are executed, in the order in which they appear, on program start-up. So, for example, if you have defined data structures that need to be initialized, you can do this in the initialization section. For units in the interface uses list, the initialization sections of units used by a client are executed in the order in which the units appear in the client's uses clause.
Well, does BCB contain corresponding keyword to fullfill this purpose? Jesse Chan
------
Jesse Chan
william
版主


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

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-08-25 16:36:50 IP:147.8.xxx.xxx 未訂閱
引言: Well, does BCB contain corresponding keyword to fullfill this purpose? Jesse Chan
I am sorry that I am not aware of any similar functionality in BCB (C )
jessechan
版主


發表:109
回覆:394
積分:254
註冊:2002-04-05

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-08-25 16:43:02 IP:203.67.xxx.xxx 未訂閱
引言:
引言: Well, does BCB contain corresponding keyword to fullfill this purpose? Jesse Chan
I am sorry that I am not aware of any similar functionality in BCB (C ) < face="Verdana, Arial, Helvetica"> Got it, thanks. Jesse Chan
------
Jesse Chan
系統時間:2024-05-10 14:09:40
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!