TIBCScript OnError event

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Matias Legnazzi
Posts: 1
Joined: Tue 18 Sep 2012 14:50

TIBCScript OnError event

Post by Matias Legnazzi » Tue 18 Sep 2012 14:57

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

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: TIBCScript OnError event

Post by ZEuS » Wed 19 Sep 2012 10:23

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.

Post Reply