Hi, if you have more than one command to use with if, while, repeat, for, with, you must use begin..end, that represents a block of instructions
if CheckBox1.Checked then
begin
edit1.Enabled := False;
edit1.Caption := 'This row is temporary disabled';
end
else
edit1.Enabled := True;
P.S. you can use begin..end also after "else":
if ..... then
begin
...
end
else begin
....
end;