Вниз
Скачать: CL | DM;

deafult .... что же это значит??   Найти похожие ветки 

 
jonni ©   (2005-02-24 17:55) [0]

Создаю property для своего Class.
Возник вот какой вопрос.....
Если проситать определение DEFAULT интересено вот что:

//-------------------------------------------
Note Declaring a default value in the property declaration does not actually set the property
to that value. It is your responsibility as the component writer to ensure that the
component’s constructor actually sets the property to that value.
//-------------------------------------------

Получается что Default вообще ни на что невлияет.
Нужно самому в Сreate присваиваит значение.

Зачем же вообще нужно default???


 
Shirson ©   (2005-02-24 17:59) [1]

The optional stored, default, and nodefault directives are called storage specifiers. They have no effect on program behavior, but control the way runtime type information (RTTI) is maintained. Specifically, storage specifiers determine whether or not to save the values of published properties in form files.


 
Anatoly Podgoretsky ©   (2005-02-24 18:25) [2]

Как же не влияет, а это что It is your responsibility as the component writer to ensure that the component’s constructor actually sets the property to that value.


 
Набережных С. ©   (2005-02-24 18:44) [3]


> Получается что Default вообще ни на что невлияет.
> Нужно самому в Сreate присваиваит значение.

В данном ключе это служит для того, чтобы значение по умолчанию не сохранялось в ресурсах. Зачем его сохранять, если оно и так будет присвоено.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.04 c
14-1108977953
gfd
2005-02-21 12:25
2005.03.13
Где создать форум?


1-1109689050
Bad
2005-03-01 17:57
2005.03.13
Fine Reader?


4-1106902281
wizi
2005-01-28 11:51
2005.03.13
Скриншот с рабочего стола.


6-1105038683
Ancot
2005-01-06 22:11
2005.03.13
Обнова через I-Net


3-1107535330
TheEd
2005-02-04 19:42
2005.03.13
Как заставить DBGrid отображать изменения триггера BeforeInsert?




   Наверх