| View previous topic :: View next topic |
| Author |
Message |
Conquer
Joined: 27 Jun 2006 Posts: 383 Location: Canada
|
Posted: Sat Jan 12, 2008 5:55 pm Post subject: Suppress Errors |
|
|
Something like #SuppressErrors to stop all error messages from showing. Useful for a professional script program that has its own error dialogs and such. Thanks for consideration or feedback. _________________
 |
|
| Back to top |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 383 Location: Berlin
|
Posted: Sat Jan 12, 2008 6:21 pm Post subject: |
|
|
Better than something like this, a try...catch command would be better. Or disabling all error dialogs would be mean to need implementing all error dialogs by user.
And what is, if any other script (library) implemented an own error catch code?
Or: #Catch ErrorNameOrCode LabelToExecute. |
|
| Back to top |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 383 Location: Canada
|
Posted: Sat Jan 12, 2008 6:43 pm Post subject: |
|
|
Yes!!! Label action would be very nice. _________________
 |
|
| Back to top |
|
 |
Andreone
Joined: 20 Jul 2007 Posts: 257 Location: Paris, France
|
Posted: Mon Jan 21, 2008 8:38 pm Post subject: |
|
|
I was recently thinking of a way to suppress automatic errors too.
I came up with the idea of a simple statement: | Code: | OnError, ErrorSub
return ; end of the auto execute section
ErrorSub:
If(ErrorReason != "Hotkey")
ExitApp
return ; i.e. continue script | like OnExit, ExitSub.
It simple and similar to what other language provides.
ErrorReason is just an idea.
Built-in error variables need refinements, but here's what I see
ErrorReason (the function that raises the error)
ErrorText
ErrorNumber
ErrorLine
ErrorFile |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 744 Location: Berlin
|
Posted: Tue Jan 22, 2008 2:45 pm Post subject: |
|
|
I agree with Andreone, an OnError label would be nice to have... _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
|