怎样获得Dialog的返回值OpenDialog
SaveDialog
OpenPictureDialog
SavePictureDialog
FontDialog
ColorDialog
PrintDialog
PrintSetupDialog
FindDialog
ReplaceDialog

解决方案 »

  1.   

    var
      filename:String;
    ......
    if OpenDialog.Execute then
      filename:=OpenDialog.FileName
    ......
      

  2.   

    var
      bFlag: boolean;
    .......
      bFlag = ...Dialog.Execute;
      bFlag 就是调用对话框的结果 
    。。
      

  3.   

    Execute用于显示对话框,返回为boolean类型,你需要的信息在各个对话框不同
    TDialog introduces the abstract Execute method, which descendant classes use to open the dialog instance at runtime. Execute returns true if the dialog executes normally (typically, if the user closes the dialog by clicking the OK button). It returns false if the dialog fails to appear or the user cancels.