写点太多了
function Find(const Name: string): TComponent;
begin
  for I := 0 to Self.ComponentCount - 1 do
    if SameText(Components[I].Name, Name) then
    begin
      Result := Components[I];
      Exit;
    end;
  Result := nil;
end;////////////////////
var
  L: TLabel;
for I := 0 to 20
begin
  L := TLabel(Find(Format('Label%d', [I])));
  if L <> nil then
  begin
    //do do do
  end;
end;