Autor Beitrag
theChaoS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Sa 18.04.09 15:43 
Hallo zusammen

mein problem ist zimlich simpler natur aber ich steig einfach nicht dahinter wie das in Delphi gehen soll :eyecrazy:

Folgendes : Ich habe 10 (oder ein Belibige von mir Definirte) Anzahl an Buttons oder Labels ect. also irgen eine Form der Standart TObject 's. Die will ich mittels einer Schleife bearbeiten also nich immer schreiben

ausblenden Delphi-Quelltext
1:
2:
3:
4:
Button1.text:=Stringvariable:
Button2.text:=Stringvariable:
Button3.text:=Stringvariable:
Button4.text:=Stringvariable:


Sondern

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i:=0 to 3 do
begin
  Button[i].text:=Stringvariable;
end;


So wie geht das :?:

P.S. für die die sich wunderen ich kan die hohe anzahl der Objekte diesesmal leider nicht verhindern ^^
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 18.04.09 15:46 
Mit FindComponent. Guck mal in der Delphi-Hilfe oder hier im Forum unter dem Stichwort.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
theChaoS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Sa 18.04.09 15:53 
Thx für die Schnelle antwort

ähhhhh kein ahnung ob ich euch überlaste aber were ein einfaches Beispiel möglich den (ich weis das habt ihr schon 10000000 mal gehört ^^) vista zickt mit der Delphi 7 hilfe rum ^^
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Sa 18.04.09 15:54 
Genügend Beispiele solltest du eigentlich hier im Forum finden, immerhin gehört die Frage IMHO zu einer der häufigsten hier im Forum. ;)
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 18.04.09 15:57 
Damit die Hilfe wieder geht, lädst du dir hier die frühere Hilfe-Version herunter:
www.microsoft.com/do...65-8070-334cd175d4bb

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
theChaoS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Sa 18.04.09 16:04 
THX hat geklapt