Looking up TModalResult in the help shows that it is now declared in the
controls unit.
I think this was changed in delphi 6 and up. Used to be declared in the
forms unit.
JED
[EMAIL PROTECTED] wrote on 11/03/2003 12:34:32 PM:
> 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;
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the [EMAIL PROTECTED]
---------------------------------------------------------------------------
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/