IBCQuery validating data raises an exception with abort...

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

IBCQuery validating data raises an exception with abort...

Post by josecarlos » 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:

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,

josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

Post by josecarlos » Sun 31 Jul 2011 13:52

This is happening only on a form, I have others that are ok.

AndreyZ

Post by AndreyZ » Mon 01 Aug 2011 10:44

Hello,

I cannot reproduce the problem. Please try composing a small sample to demonstrate the problem and send it to andreyz*devart*com.

Post Reply