Autor Beitrag
icedre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: Do 24.02.05 18:15 
Hallo,

folgendes Problem ich hab ne FOR Schleife; sagen wir, die Schleife wird 12mal durch laufen, jetzt will ich 12 Label´s auf Visible:=true setzten.
Ich hab es so versucht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var i:integer;
begin
for i:=1 to 12 do
 begin
 Label"I".Visible:=true;
 end;
end;

Also, dass nach "Label" i eingesetzt wird, sodass Label1, Label2,... auf Visible geschaltet werden...Ich jetzt schon viele verschiedene Schreibvarianten versucht, aber ich komm nicht drauf...
Vielleicht kann mir ja einer helfen, danke !

Moderiert von user profile iconAXMD: Delphi-Tags hinzugefügt.

_________________
Sprach Abraham zu Braham:
Kann ich deine Frau besamen
Elite
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 24.02.05 18:21 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
 i: integer;
begin
 for i := 1 to 12 do
  TLabel(FindComponent('Label'+inttostr(i))).visible := true;
end;
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: Do 24.02.05 19:22 
Alles klar.
Danke!

_________________
Sprach Abraham zu Braham:
Kann ich deine Frau besamen