Page 1 of 1
TIBCScript OnError event
Posted: Tue 18 Sep 2012 14:57
by Matias Legnazzi
Hi. I am excuting a DLL script, creating a table. When i execute this script and the table exists, i get the corresponding error from the DBEngine ("Unsuccesful metadata update, table XX already exists). Is there anyway of bypassing this error dialog box ??? I need to implement an OnError event that just shows an error bitmap.
Thanks in advance
Matias
Re: TIBCScript OnError event
Posted: Wed 19 Sep 2012 10:23
by ZEuS
In order to avoid showing error messages, you should set the Action parameter in the IBCScript.OnError event handler to eaContinue if you want to continue script execution, or to eaAbort if you want to abort script execution. In both these cases, no error message will be displayed.
Please, refer to the help topic for the TErrorAction enumeration in the IBDAC documentation to learn more about possible Action values.