I am using sc_exec_sql in a button event.
Sometimes I get an error from the database which SC automatically displays in the browser.
I would like to intercept the error and manage it programmatically rather than having it displayed automatically by SC.
Is there a macro to intercept an SQL error ?
I know about sc_error_insert/update/delete but such macro works only on the OnInsert/OnUpdate/OnDelete event chain and not on other generic event.
Thanks for your help.