Topic: Show confirmation box before to save

Hey guys, how to show confirmation box before to save the form?

Re: Show confirmation box before to save

Hello.


procedure Form2_buttonSave_OnClick (Sender: string; var Cancel: boolean);
begin
    if MessageDlg('Your message here.', mtConfirmation, mbYes+mbNo, 0) = mrNo then
    begin
      Cancel := True;
    end;
end;
Dmitry.

Re: Show confirmation box before to save

Thanks! smile