I don't understand how to use the MessageBox procedure. An example please. Thanks Norbert
GMT NORBERT ALLAIN wroteI don't understand how to use the MessageBox procedure. An example please.
The Application.MessageBox exists only for Delphi compatibility. It just calls MessageDlg, which has some more features.
For example:
Add Dialogs to your uses section.
procedure TForm1.Button1CLICK(Sender: TObject);
begin
if MessageDlg('Caption','Text',mtInformation,[mbOk,mbCancel],0)=mrOk then
Application.MessageBox('You pressed ok','Caption',MB_OK);
end;Mattias
