ERROR_MESSAGE [message #77798] |
Thu, 22 September 2011 10:18 |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
I am almost ready to adopt David's ERROR_MESSAGE routine (along with CATCH statements) for my error handling, and abandon ON_ERROR,2. But what bothers me are examples like the following:
!p.multi=[0,4,4]
for i=0,15 do cgplot,indgen(10),colour='red'
in which an error message widget pops up (since I spelled 'color' in an un-American way), I press 'OK' and another error message widget pops up, ad infinitum. In general, I would prefer error messages to terminate processing rather than try to continue, and likely encounter further errors.
One possible solution is for the pop-up widget to have two buttons "OK" and "RETALL" (though this has the disadvantage of introducing a choice). But maybe there is a better solution, or maybe I just need to adjust my thinking.
Thanks, --Wayne
|
|
|