I\'m trying to change the caption of many labels using regular way:
labels
form1.label1.caption := \'1\'; form1.label2.caption := \'2\'; form1.label3.c
If you are sure you have 50 labels label1, label2 .. label50 The solution could be like this:
var lbl: TLabel; for i:=1 to 50 do begin lbl := FindComponent('Label'+IntToStr(i)) as TLabel; lbl.Caption := IntToStr(i); end;