An unexpected error popped up.

[Error] Unit1.pas (191): Statement expected but 'PROCEDURE' found

With what it can be connected?

Part of the code

procedure TForm1.CheckBox2Click(Sender: TObject); begin if checkBox2.Checked = true then edit3.Enabled := true else edit3.Enabled := false; end; 

And another such question. The program works fine, but after performing the specified action, an error "Invalid poiner operation" pops up.

    1 answer 1

    most likely you have some operator brackets (begin end) in the previous procedure.

    • Yes exactly. Thank. - Svyatoslav