5,386
社区成员
发帖
与我相关
我的任务
分享
var
i:Integer;
begin
for i:=0 to self.ComponentCount-1 do
begin
if self.Components[i] is TLabel then
begin
if (Components[i] as TLabel).Name = edit1.Text then
begin
(Components[i] as TLabel).Caption:='helloworld';
end;
end;
end;
end;