problem with dbcontrols and Field Onchange Event

Hello



I have a dataset field linked with DbAdvEdit and TdbEdit.



I have defined Field change event like:



procedure TForm3.LineasDataSetUNIDADESChange(Sender: TField);

begin

......

raise Exception.Create('Error Message');

end;



when I change edit using TdbEdit I get and exception with "Error message", but if I edit DbAdvEdit, exception raise but no any message show.

the same applies with DBAdvGrid



Thanks



thanks

I have retested this here with a simple TDBAdvEdit connected to a datasource and connected the DBField's, OnChange that was assigned to DBAdvEdit to following event handler:


procedure TForm1.ADOTable1BrandChange(Sender: TField);
begin
  listbox1.Items.Add('change');
  raise Exception.Create('Error Message');
end;

and I cannot see a problem here. The exception is effectively raised. What do you do different from this?

Hello



I´m using IBDAC (DevArt) componet´s. Could be a problem between DevArt and TMS? with a TDbEdit works ok. But with TDBAdvEdit exception message are not show.

Can I send you an application using Ibdac componets?



thanks

Sorry, we do not have DevArt components installed here.

Did you try to reproduce this with data-access components that are shipped with Delphi itself?

could I send you a firebird database and application using dbexpres?

Preferably something with a clientdataset, then there are absolutely no issues with all kinds of possible settings on database / connection / dataset 

I have ready an example with a clientdataset one TdbEdit, one TadvDebEdit

how can I sent it to you?



thanks

See: http://www.tmssoftware.com/site/support_mail.asp