Re: MessageDLG error in datamodule

From: Geir (softtech_at_hotpop.com)
Date: 09/25/04


Date: Sat, 25 Sep 2004 00:40:12 +0200

Hi Maarten,

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...

Thanks
Geir

On Fri, 24 Sep 2004 19:20:34 +0200, "Maarten Wiltink"
<maarten@kittensandcats.net> wrote:

>"Geir" <softtech@hotpop.com> wrote in message
>news:2kh8l01gmtigcd4jm2ahn4v3u94c8rcd3p@4ax.com...
>[...]
>> ( note: uses dialogs is included in the uses statement )
>>
>> procedure Tdm1.tblOrdreBeforePost(DataSet: TDataSet);
>> begin
>> 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.
>
>Groetjes,
>Maarten Wiltink
>