Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.03.13;
Скачать: 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 вся ветка

Текущий архив: 2005.03.13;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.032 c
1-1109531054
Erl
2005-02-27 22:04
2005.03.13
FastReport


1-1109497219
Sam Stone
2005-02-27 12:40
2005.03.13
Работа с экселем


6-1104670234
volser
2005-01-02 15:50
2005.03.13
Мониторинг http


14-1109069405
syte_ser78
2005-02-22 13:50
2005.03.13
Сообщение Word - Файл используется другим пользователем.


4-1107195222
Ландграф Павел
2005-01-31 21:13
2005.03.13
Ввести в поле чужой программы свой текст