Forum: Sonstige Fragen zu Delphi
Delphi
by hoika,
4. Jun 2008
Hallo
for J := 4 to 7 do
(TPanel (FindComponent ('p' + IntToStr (J + 3)
J=7 ergibt p10
10 als Zeile hast du aber gar nicht, oder ?.
Forum: Sonstige Fragen zu Delphi
Delphi
by hoika,
4. Jun 2008
Hallo,
Die Anzahl der Panels ist wohl dynamisch ?
FindComponent kann auch NIL sein.
Ich würde die Panela zumindestens beim Start der Prozedur einmal ermitteln
var
Panel1_1, Panel1_2... : TPanel;
begin
Panel1_1_1:= TPanel (FindComponent ('p' + IntToStr (J) + IntToStr (I)));