Hallo!
Was Du brauchst ist die Funktion FindComponent. Die wird dann so benutzt:
Delphi-Quellcode:
VAR myObject : TObject;
begin
myObject:=FindComponent('L'+IntToStr(i));
if myObject is TLabel then
TLabel(myObject).Caption := TLabel(myObject).Hint;
end;
Das myObject brauchst Du nicht unbedingt, aber ich wollte nicht dreimal FindComponent aufrufen.
MfG
Peter
//edit:

zu langsam!
Christian S.
Admin in der Entwickler-Ecke