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

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Q to dev.: Why OpenSQL errors are not handled with On Error?

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

by Lowlander » Wed Feb 09, 2011 2:52 pm

This should be fixed, can you confirm: http://www.ventismedia.com/mantis/view.php?id=6709

by ZvezdanD » Wed Jun 18, 2008 6:44 am

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.

by trixmoto » Wed Jun 18, 2008 3:15 am

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. :-?

by ZvezdanD » Tue Jun 17, 2008 5:58 pm

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.

by trixmoto » Tue Jun 17, 2008 4:36 pm

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.

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

by ZvezdanD » Tue Jun 17, 2008 10:33 am

Please developers, this is really annoying.

Top