语句没问题?
有没有在系统单元中uses Dialogs这个单元?报什么错?

解决方案 »

  1.   

    MessageDlg('提示',mtInformation,[mbOk,mbNo],0);
      

  2.   


    喔,你把 i 写成 l 了,粗心(^_^)!mtlnformation 错
    mtinformation 对
      

  3.   

    if MessageDlg('确认否?',mtlnformation,[mbYes,mbNo],0) = mrYes then
                            --------------
                             mtInformation
      

  4.   

    是mtInformation,拜托你多看看帮助!
    mtWarning  A message box containing a yellow exclamation point symbol.
    mtError A message box containing a red stop sign.
    mtInformation A message box containing a blue "i".
    mtConfirmation A message box containing a green question .
    mtCustom A message box containing no bitmap. The caption of the message box is the name of the application's executable file