Page 1 of 1

Q to dev.: Why OpenSQL errors are not handled with On Error?

Posted: Tue Jun 17, 2008 10:33 am
by ZvezdanD
Please developers, this is really annoying.

Posted: Tue Jun 17, 2008 4:36 pm
by trixmoto
You can easily do this yourself in the script. In fact it's better if you do it yourself because you built the SQL so you know what it's doing and can therefore display a more helpful error message.

Posted: Tue Jun 17, 2008 5:58 pm
by ZvezdanD
trixmoto wrote:You can easily do this yourself in the script. In fact it's better if you do it yourself because you built the SQL so you know what it's doing and can therefore display a more helpful error message.
I think that you didn't understand me. This is exactly what I want - to handle all VBScript errors by myself. For example:

Code: Select all

On Error Resume Next
Set oIter = SDB.Database.OpenSQL("SELEC")
This will display unneeded error message, even if there is On Error in the front of the wrong line. Other VBScript errors are handled with On Error Resume Next without a problem. Maybe I should use a term "catched" instead of "handled". Sorry for my bad English.

Posted: Wed Jun 18, 2008 3:15 am
by trixmoto
Oh, I thought I'd done this before without any problems. Maybe that was in MM2 and I've not re-tested in MM3 yet. :-?

Posted: Wed Jun 18, 2008 6:44 am
by ZvezdanD
trixmoto wrote:Oh, I thought I'd done this before without any problems. Maybe that was in MM2 and I've not re-tested in MM3 yet. :-?
Actually, it is same behavior in MM2, as in MM3. :( I just tried it.

Re: Q to dev.: Why OpenSQL errors are not handled with On Er

Posted: Wed Feb 09, 2011 2:52 pm
by Lowlander
This should be fixed, can you confirm: http://www.ventismedia.com/mantis/view.php?id=6709