Re: Delphi Messagebox
Posted by Ariel Marasigan on August 21, 2004
In Reply to: Re: Delphi Messagebox posted by webmaster Guido on May 29, 2004
:
: : I always used VB6 and VB.NET and use
: : : msgbox ("Hi")
: : : But how do you do that in Delphi?
: : : I tried messagebox ("hi") or ('hi') but
: : : ain't working
: : ------------------------
: : Showing a message is done as follows:
: : ShowMessage('Hi');
: : If you look up ShowMessage in the Help, you'll also find some other possibilities.
This one will work:
if MessageBox(Handle, 'Are you sure that you want to exit?','Exit',MB_YESNO) = IDYES
then
... do something
[ DelphiLand FAQ ]
|