property 的 default |
答題得分者是:william
|
jessechan
版主 ![]() ![]() ![]() ![]() ![]() 發表:109 回覆:394 積分:254 註冊:2002-04-05 發送簡訊給我 |
|
william
版主 ![]() ![]() ![]() ![]() ![]() 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
jessechan
版主 ![]() ![]() ![]() ![]() ![]() 發表:109 回覆:394 積分:254 註冊:2002-04-05 發送簡訊給我 |
引言: default is used to specify the default value of the property. A property with value equals to the default value will not be written to the dfm file (I think so... never check it
------
Jesse Chan |
dllee
站務副站長 ![]() ![]() ![]() ![]() ![]() ![]() 發表:321 回覆:2519 積分:1711 註冊:2002-04-15 發送簡訊給我 |
這又是一個 DELPHI 有 BCB 沒有的功能
------
http://www.ViewMove.com |
william
版主 ![]() ![]() ![]() ![]() ![]() 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
引言: 這又是一個 DELPHI 有 BCB 沒有的功能Same for Delphi, you need to assign the "default value" somewhere within the constructor. I think the keyword default is used by the compiler/IDE itself. A property (e.g. Tag) with a value same to the default value (e.g. 0) will not create an entry in the form file (dfm), well... not worth to check since it only saves a few bytes for the file.... |
dllee
站務副站長 ![]() ![]() ![]() ![]() ![]() ![]() 發表:321 回覆:2519 積分:1711 註冊:2002-04-15 發送簡訊給我 |
引言:明白了引言: 這又是一個 DELPHI 有 BCB 沒有的功能Same for Delphi, you need to assign the "default value" somewhere within the constructor. I think the keyword default is used by the compiler/IDE itself. A property (e.g. Tag) with a value same to the default value (e.g. 0) will not create an entry in the form file (dfm), well... not worth to check since it only saves a few bytes for the file....
------
http://www.ViewMove.com |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |