窗体做参数
procedure OpenOrCloseTuningFunctionOfPh(AForm :TFormClass);
var
i :integer;
BForm :TForm absolute AForm;
begin
for i := 1 to 20 do
begin
TCheckBox(BForm.FindComponent('chk' + IntToStr(i))).Left := 1;
TCheckBox(BForm.FindComponent('chk' + IntToStr(i))).Visible := True;
TEdit(BForm.FindComponent('edt' + IntToStr(i))).Left := 15;
TEdit(BForm.FindComponent('edt' + IntToStr(i))).Visible := True;
end;
end;
procedure OpenOrCloseTuningFunctionOfPh(AForm :TForm);
var i :integer;
begin
for i := 1 to 20 do begin
with TCheckBox(AForm.FindComponent('chk' + IntToStr(i))) do begin
Left := 1;
Visible := True;
end;
with TEdit(AForm.FindComponent('edt' + IntToStr(i))) do begin
Left := 15;
Visible := True;
end;
end;
end;