How to make in Delphi 7 so that after pressing the button a window appears, similar to the error with my text, then after pressing "ok" another such window and after pressing "ok" in the second window the application is closed.
- oneRepeat question . - Nicolas Chabanovsky ♦
|
2 answers
Have you ever read Delphi Help? Catch the exception, call one, two ... five forms, and on the last set the procedure for completing the program. I will not give the code, you will find it online. (Useful for the brain).
|
Hi try this (if I understood correctly what you need):
if MessageDlg('Твое сообщение об ошибке 1', mtError, mbOK, 0) = mrOk then if MessageDlg('Твое сообщение об ошибке 2', mtError, mbOK, 0) = mrOk then Close();
- It gives an error in this place mbOK, 0) = mrOk - Maykop
- Take mbOK in square brackets [], ie: MessageDlg ('Your error message 1', mtError, [mbOK], 0) - Lest4t
|