Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Аватара для Megabyte

Пользователь


Сообщения: 114
Благодарности: 2

Профиль | Отправить PM | Цитировать


Вот пример:
Код: Выделить весь код
 
Var 
 *i, k: integer; 
 *S: String; 
Begin 
 *For k:=0 to Application.ComponentCount-1 do 
 * begin 
 * * S:=Application.Components[k].ClassName; 
 * * If Copy(S, Length(S)-3, 4)='Form' then 
 * * * For I:=0 to Application.Components[k].ComponentCount-1 do 
 * * * * *If (Application.Components[k].Components[i].ClassName='TLabel') * or 
 * * * * * * (Application.Components[k].Components[i].ClassName='TButton') then 
 * * * * * begin 
 * * * * * * If Application.Components[k].Components[i].ClassName='TLabel' then 
 * * * * * * * If (Application.Components[k].Components[i] as TLabel).Name='Label'+IntToStr(i) 
 * * * * * * * * *(Application.Components[k].Components[i] as TLabel).Caption:='Метка '+IntToStr(i); 
 * * * * * * If Application.Components[k].Components[i].ClassName='TButton' then 
 * * * * * * * If (Application.Components[k].Components[i] as TButton).Name='Button'+IntToStr(i) 
 * * * * * * * * *(Application.Components[k].Components[i] as TButton).Caption:='Кнопка '+IntToStr(i); 
 * * * * * end; 
 * * * *end; 
 * *end; 
End;

-------
Слова следует взвешивать, а не считать.
(Восточная пословица)


Отправлено: 10:12, 09-02-2004 | #2