Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ModalResult

88 views
Skip to first unread message

Glenn Gothjelpsen

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to
Does anyone know why I get a "Undeclared identifier: 'mrYes'" when I
compile my code? I am trying to do this: if MessageDlg('My
Message',mtConfirmation,[mbYes,mbNo],0) = mrYes then ...

Dialogs is included in my Units and even the example in the help shows I
am doing this correctly. Has anyone else come across this and do you
know how to fix it? I am currently using Delphi 3.0.

Thanks in advance,

Glenn

Christopher Pall

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to
You need to add Controls to your uses clause.

John Olson

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to
mrYes is defined in Controls.
mbYes is defines in Dialogs.

This is in Delphi 2.0

John

Glenn Gothjelpsen

unread,
Jul 23, 1998, 3:00:00 AM7/23/98
to
Thanks.

Glenn Gothjelpsen

unread,
Jul 23, 1998, 3:00:00 AM7/23/98
to
Thanks.

Srinivas Junnuru

unread,
Jul 23, 1998, 3:00:00 AM7/23/98
to
For MessageDlg function you return values you could check for are
IDYes, IDNo etc... mrYes, mrNo, mrCancel are generally used for
Forms.

Hope this helps.

--
Srinivas Junnuru
(Pl. remove NOSPAM from my address in order to send me email)

Glenn Gothjelpsen wrote in message <35B615...@veritasdgc.com>...

0 new messages