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.
[quote="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.[/quote]
I think that you didn't understand me. This is exactly what I want - to handle all VBScript errors by myself. For example:
[code]On Error Resume Next
Set oIter = SDB.Database.OpenSQL("SELEC")[/code]
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.