Page 1 of 1

IBCQuery validating data raises an exception with abort...

Posted: Sat 30 Jul 2011 19:03
by josecarlos
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,

Posted: Sun 31 Jul 2011 13:52
by josecarlos
This is happening only on a form, I have others that are ok.

Posted: Mon 01 Aug 2011 10:44
by AndreyZ
Hello,

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