Autor Beitrag
LickstheComp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Mi 05.11.08 20:35 
Ich habe mehrere Buttons und möchte sie durch eine Schleife alle auf einmal auf enabled:=false setzen!
Hier mein Ansatz:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
button: array [1..5] of tbutton;

for i := 1 to 5 do begin
for y := 30 to 34 do begin // die Button heißen Button30 bis Button34
button[i]:=button[y];  // aber irgendwie geht das nicht wirklich dass ich sie definiere
end;
end;


bitte um Hilfe!
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Mi 05.11.08 20:36 
Du brauchst FindComponent.
LickstheComp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Mi 05.11.08 20:42 
danke habe ich vergessen!