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

Помогите пожалуйста!   Найти похожие ветки 

 
Rain ©   (2002-02-04 07:07) [0]

Скажите пожалуйста можно ли обращаться к одинаковым StringGrid на разных формах, через цикл. (Form[i].stringgrid1...?)если можно то как? спасибо.


 
olookin   (2002-02-04 07:15) [1]

Можно!

procedure TForm1.Button1Click(Sender: TObject);
var i,j: integer;
begin
for i:=0 to Application.ComponentCount-1 do
for j:=0 to Application.Components[i].ComponentCount-1 do
if (Application.Components[i].Components[j] is TStringGrid) and
(Application.Components[i].Components[j] as TStringGrid).Name=
"StringGrid1" then //что-либо нужное
end;



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

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



Память: 0.44 MB
Время: 0.007 c
1-57048
Елена
2002-02-04 11:52
2002.02.18
Гориз. полоса прокрутки в ComboBox


1-57114
Delphir
2002-02-02 11:45
2002.02.18
Cloning ListView and ComboBox


3-57027
Axex12
2002-01-25 04:36
2002.02.18
Как вывести результат суммы по столбцу?


14-57212
Yuraz
2001-12-29 10:58
2002.02.18
EURO+ERO


4-57270
ALEX_RUUU
2001-12-19 01:13
2002.02.18
WIN API




   Наверх