IBCQuery validating data raises an exception with abort...
Posted: Sat 30 Jul 2011 19:03
I am porting an application wrote using IBX, everything is working fine, just a few issues.
I have some data validation on the event onBeforePost, like this:
So, the Abort is raising an exception and give me the error message 'Operation aborted'.
This way to validate the data works fine with IBX, how can I avoid this exception?
I am using IBDAC 3.60.024, Firebird 1.5 and D2010.
I set the ibconnection.autocommit to false, becaus I want to handle the transaction.
Thanks,
I have some data validation on the event onBeforePost, like this:
Code: Select all
if ibQueryNAME.IsNull then begin
Application.MessageBox(PCHAR('Provide the name'), PCHAR('Warning'), MB_ICONERROR);
dxDbName.SetFocus;
Abort;
end;
So, the Abort is raising an exception and give me the error message 'Operation aborted'.
This way to validate the data works fine with IBX, how can I avoid this exception?
I am using IBDAC 3.60.024, Firebird 1.5 and D2010.
I set the ibconnection.autocommit to false, becaus I want to handle the transaction.
Thanks,