procedure TForm1.Button1Click(Sender: TObject); var i: integer; begin for i:=1 to 200 do if FindComponent('RadioButton'+IntToStr(i)) <> nil then TRadioButton(FindComponent('RadioButton'+IntToStr(i))).Enabled := false; end;
var i: integer; begin for i:= 0 to Form1.ControlCount -1 do begin if Self.Controls[i].ClassName = 'TRadioButton' then TRadioButton(Form1.Controls[i]).Caption := 'Test'; end; end;
var
i: integer;
begin
for i:=1 to 200 do
if FindComponent('RadioButton'+IntToStr(i)) <> nil then
TRadioButton(FindComponent('RadioButton'+IntToStr(i))).Enabled := false;
end;
i: integer;
begin
for i:= 0 to Form1.ControlCount -1 do
begin
if Self.Controls[i].ClassName = 'TRadioButton' then
TRadioButton(Form1.Controls[i]).Caption := 'Test';
end;
end;