MSScript not raising exception
Posted: Wed 26 Oct 2011 19:13
Hi
I am using an MSScript component, that I fill the SQL in dynamically.
Sometimes the SQL that gets filled in is with errors, like incorrect syntax near bla bla, or field not found or whatnots... BUT
MSScript.execute does NOT raise an exception, in stead it shows an error message to the user, with looks like a showmessage.
This is useless, as I cannot handle the error the correct way.
Am I correct in assuming that you showmessage and not raise an exception?
Best regards
Jens Fudge
I am using an MSScript component, that I fill the SQL in dynamically.
Sometimes the SQL that gets filled in is with errors, like incorrect syntax near bla bla, or field not found or whatnots... BUT
MSScript.execute does NOT raise an exception, in stead it shows an error message to the user, with looks like a showmessage.
This is useless, as I cannot handle the error the correct way.
Am I correct in assuming that you showmessage and not raise an exception?
Best regards
Jens Fudge