modalresult的返回值是多少????
mrno
mrok
mryes
mrerror
mrnone
mrcancel
mrretry
mrabort
mrignore
mryestoall
mrall

解决方案 »

  1.   

    mrNone   0 None. Used as a default value before the user 
                      exits.
    mrOk   1 The user exited with OK button.
    mrCancel   2 The user exited with the CANCEL button. 
    mrYes   3 The user exited with the YES button.
    mrNo   4 The user exited with the NO button.
    mrAbort   5 The user exited with the ABORT button.
    mrRetry   6 The user exited with the RETRY button.
    mrIgnore   7 The user exited with the IGNORE button.
    mrAll   8 The user exited with the ALL button.
    mrNoToAll   9 The user exited with the NO TO ALL button.
    mrYesToAll 10     The user exited with the YES TO ALL button.
      

  2.   

    在Button的Click事件中可以任意赋值:
    ModalResult := mrOK ;