What error are you getting? You could try using dialogs.mrYes if you're
getting an error that the types aren't compatible.

Cheers,
Nicholas Sherlock

----- Original Message -----
From: "Allan, Samuel" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 2:34 PM
Subject: [DUG]: MessageDlg()


I can't compile this code. It says that the symbol mrYes is unidentified. I
have added the Dialogs unit to the uses clause of my unit. This is pretty
much the example from the help. In fact, the example from the help uses the
same mrYes and also doesn't work. Why?

if MessageDlg('Do you want to save your
changes?',mtConfirmation,[mbYes,mbNo],0) = mrYes then
   RespondToYes
else
   RespondToNo;
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to