Have a look at the following code, it should suit your purpose:
procedure TfrmCommand.btnProcessClick(Sender: TObject);
var
i:integer;
begin
for i := 0 to ComponentCount - 1 do
begin
if UpperCase(Copy(Components.Name, 1, 4)) = 'EDIT' then
begin
(Components as TEdit).Text := intToStr(i);
end;
end;
end;