Home Image-Pro Automation (Macros, Apps, Reports)
Options

Set Threshold by macro

Hi guys,
I wrote an App on which the user can set the threshold levels manually.
Once done user press the OK button in the baloon message.
The App works fine.

If the  Cancel button is used  the App reports an error and the App is stopped .


How can I catch this error without stop the App execution?

I need to handle the Cancel action in order to correctly recover the App.

thank you
Ciao
Maurizio

Answers

  • Options
    Hi Maurizio,

    You have to put the command inside try/catch block. In that case the error dialog will not be shown when user clicks Cancel.

    Yuri
Sign In or Register to comment.