Вниз
Скачать: 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.03 c
3-1107882935
Garmahis
2005-02-08 20:15
2005.03.13
MS SQL 2000 и BLOB


1-1109580737
Ньюб
2005-02-28 11:52
2005.03.13
Как зарегистрировать программный продукт


3-1107971746
frEE)stylEr
2005-02-09 20:55
2005.03.13
проблема с DBGrid


14-1108899022
07BB:080Dh
2005-02-20 14:30
2005.03.13
Кто нибудь на работе слушает "Красную плесень"?


3-1108018605
Mars
2005-02-10 09:56
2005.03.13
Как сделать выборку из базы с помощью SQL,




   Наверх