It's very strange, the FieldKind "fkInternalCalc" (see Delphi Documentation) don't work with DataAccess Components for MySQL.
I know that it's a very strange kind of Field, But I need this !
The fkInternalCalc is for Field who are in the database but it's calculated fields !
Exemple :
Code: Select all
QsingleCALCFIELD:=TFloatField;
QsingleInternalCalc:=TFloatField;
And Properties
QsingleCALCFIELD.FieldKind:= fkCalculated;
QsingleInternalCalc.FieldKind:= fkInternalCalc;
procedure TForm1.QsingleCalcFields(DataSet: TDataSet);
begin
QsingleCALCFIELD.Value:=QsingleMONTANTHT.Value*(1+QsingleTAUXTVA.Value/100);
If Qsingle.State in [dsEdit,dsInsert] then QsingleInternalCalc.Value:=QsingleMONTANTHT.Value*(1+QsingleTAUXTVA.Value/100);
end;But QsingleInternalCalc.Value is always 0
Why ?