Cheers, thanks. I just found it myself while I was looking for something else :-) In 
D6 it's in the Controls unit.

-----Original Message-----
From: Conor Boyd [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 March 2003 2:45 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: MessageDlg()


If you type mrYes, and hit F1 on it, the Help for D5 will tell you that it's
defined in the Forms unit, as one of the the TModalResult values.

HTH,

Conor

-----Original Message-----
From: Allan, Samuel [mailto:[EMAIL PROTECTED]

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