Page 1 of 1

tquery OnCalcFields doesn´t work at all

Posted: Mon 05 Dec 2005 07:56
by ctkoo
STOCK_LOT is a calculated field but doesn't work during runtime ( myquery.autocalcfields=true )

Code: Select all

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

Posted: Mon 05 Dec 2005 08:56
by Ikar
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