Hi
Why am I getting a stack overflow situation when I click on a check box called "ChkBoxActive". The "On Click" procedure is below:
procedure TfrmCPInvoices.ChkBoxActiveClick(Sender: TObject);
begin
if (ChkBoxActive.Checked = True) then
ChkBoxActive.Checked := False
else
ChkBoxActive.Checked := True;
end;
I simply want it to check the box on click and uncheck it when it is clicked again.
Regards,
George
Why am I getting a stack overflow situation when I click on a check box called "ChkBoxActive". The "On Click" procedure is below:
procedure TfrmCPInvoices.ChkBoxActiveClick(Sender: TObject);
begin
if (ChkBoxActive.Checked = True) then
ChkBoxActive.Checked := False
else
ChkBoxActive.Checked := True;
end;
I simply want it to check the box on click and uncheck it when it is clicked again.
Regards,
George