Incorrect code block
procedure TsDBNavigator.ActiveChanged;
var
I: TNavigateBtn;
begin
if Buttons[Low(Buttons)] <> nil then
if not (Enabled and FDataLink.Active) then
for I := Low(Buttons) to High(Buttons) do
if Buttons <> nil then
Buttons.Enabled := False
else begin
DataChanged;
EditingChanged;
end;
end;
Error-free code block
procedure TsDBNavigator.ActiveChanged;
var
I: TNavigateBtn;
begin
if Buttons[Low(Buttons)] <> nil then
if not (Enabled and FDataLink.Active) then
begin
for I := Low(Buttons) to High(Buttons) do
if Buttons <> nil then
Buttons.Enabled := False
end
else begin
DataChanged;
EditingChanged;
end;
end;