Hi,
when an error occurs during the TMyDmp.RestoreFromFile , an messagebox is shown. How can I catch this error (in a thread) instead of having this messagebox?
Thanks!
TMyDmp.RestoreFromFile: hide messagebox on error
Re: TMyDmp.RestoreFromFile: hide messagebox on error
To handle errors during the restore operation, you can use the TMyDump.OnError event handler.
Example: If you want to continue restore execution after error occurrence: to avoid showing error messages, you should set the Action parameter in the TMyDump.OnError event handler to eaContinue if you want to continue script execution.
Note: if you run the application from the IDE, and the Stop On Delphi Exception (Notify on language exceptions) option is enabled, an error message will be shown in any way, independently on the Action parameter value; when running the application from *.exe - an error won't be shown ( Action = eaContinue).
For more information about the TMyDump.OnError event handler, please refer to MyDAC help: https://www.devart.com/mydac/docs/index ... nerror.htm
Example: If you want to continue restore execution after error occurrence: to avoid showing error messages, you should set the Action parameter in the TMyDump.OnError event handler to eaContinue if you want to continue script execution.
Note: if you run the application from the IDE, and the Stop On Delphi Exception (Notify on language exceptions) option is enabled, an error message will be shown in any way, independently on the Action parameter value; when running the application from *.exe - an error won't be shown ( Action = eaContinue).
For more information about the TMyDump.OnError event handler, please refer to MyDAC help: https://www.devart.com/mydac/docs/index ... nerror.htm
Re: TMyDmp.RestoreFromFile: hide messagebox on error
Ok, thank you very much!
Re: TMyDmp.RestoreFromFile: hide messagebox on error
Thank you for being interested in our products.
Feel free to contact us if you have any further questions about our products.
Feel free to contact us if you have any further questions about our products.