for i := form3.ComponentCount - 1 do
begin
if Form3.Components[i] is TDBEdit then
TDBEdit(Form3.Components[i]).Enabled := False;
end;
begin
if Form3.Components[i] is TDBEdit then
TDBEdit(Form3.Components[i]).Enabled := False;
end;
form3.CompnentCount
大概给个方向给你.自己查一下好了.
另外, if xxx is TDBEDIT then
(xxx as TDBEDIT).Enable:=....;