Re: MessageDLG error in datamodule
From: Geir (softtech_at_hotpop.com)
Date: Sat, 25 Sep 2004 00:40:12 +0200
Thats right, by adding Controls to the Uses list
it all worked fine, as you stated - it was actually answered
in the help files ... ( and that's no lie !! )
I'll keep in mind grepping the VCL...
On Fri, 24 Sep 2004 19:20:34 +0200, "Maarten Wiltink"
>"Geir" <email@example.com> wrote in message
>> ( note: uses dialogs is included in the uses statement )
>> procedure Tdm1.tblOrdreBeforePost(DataSet: TDataSet);
>> if MessageDlg('Want to save changes...?) ', mtConfirmation,
>> [mbYes, mbNo], 0) = mrYes then // Here I get the error saying :
>> undeclared identifier mrYes
>That was a lovely chase after a flock of wild geese. The help file
>lies. Grepping the VCL source directories (a good trick, you may
>want to remember it) reveals that modalresult constants are declared
>in the Controls unit.