tquery OnCalcFields doesn´t work at all

tquery OnCalcFields doesn´t work at all

Postby 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: 1
Joined: Mon 05 Dec 2005 07:37

Postby 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
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Return to MySQL Data Access Components