Pop-up a Message Dialog to Confirm an Action





1
Date Submitted Tue. Oct. 24th, 2006 8:02 AM
Revision 1 of 1
Helper bright
Tags Delphi | message
Comments 2 comments
This snippet shows how to properly implement a message dialog (messagedlg) to confirm some action or event with Delphi.


if MessageDlg('Are you sure?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
  begin
    { Put code here to do whatever you are confirming
       that the user wants to do }

  end;

 

Comments

Comments SPAM
Wed. Oct. 25th, 2006 1:45 PM    Scripter ctiggerf
  Comments Re: Spam
Fri. Oct. 27th, 2006 9:01 AM    Helper bright

Voting