for i := 0 to (ComponentCount - 1) do if (Components[i] is TDBedit) or (Components[i] is TDBgrid) then .....................
for i := 0 to ComponentCount - 1 do begin if (Components[i] is TDBEdit) then TEdit(Components[i]).ReadOnly := True; if (Components[i] is TDBGrid) then TMemo(Components[i]).ReadOnly := True;
if (Components[i] is TDBedit) or (Components[i] is TDBgrid) then
.....................
begin
if (Components[i] is TDBEdit) then
TEdit(Components[i]).ReadOnly := True;
if (Components[i] is TDBGrid) then
TMemo(Components[i]).ReadOnly := True;
end;