tquery OnCalcFields doesn´t work at all

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Mon 05 Dec 2005 07:37

tquery OnCalcFields doesn´t work at all

Post by ctkoo » Mon 05 Dec 2005 07:56

STOCK_LOT is a calculated field but doesn't work during runtime ( myquery.autocalcfields=true )

Code: Select all

procedure MyQueryCalcFields(DataSet: TDataSet);
  if MyQuerySTOCK_DESC.AsString='GOOD' then
    MyQuerySTOCK_LOT.AsString:='LOT A'
  else MyQuerySTOCK_LOT.AsString:='LOT Z'

Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 05 Dec 2005 08:56

We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it and include script to create and fill table.

Also supply us following information

- Exact version of Delphi, C++ Builder or Kylix
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor

Post Reply