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.
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
0
Answers
-
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.
Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions