对多个EDIT 控件循环赋值

var
  i:Integer;
  control:TComponent;
begin
  for i := 0 to 99 do
  begin
    control := FindComponent('Edit'+IntToStr(i));
    if control <> nil then
    begin
      TEdit(control).Text := IntToStr(i);
    end;
  end;
end;
posted @ 2011-05-17 08:14  aBung  阅读(298)  评论(0编辑  收藏  举报