Topic: real time calculation

HELLO MVD!

I need help regarding on the calculated field.. On the data entry form, the total field does not automatically calculate on the onChange field on the "Cost" and "QTY" field. But if you save the record then back to the grid form then back to form again it was saved.

My point of view i need a sample to calculate the "Total" field on the onChange event..

Thanks!

Post's attachments

Attachment icon _Calculate on the Form.zip 336.97 kb, 394 downloads since 2017-08-15 

Re: real time calculation

You have your calculation commented out. Just uncomment (remove slashes) and it works fine.


procedure computeTotal (Sender: string);
begin
      //frmZakaz.edTotal.Value := frmZakaz.edCost.Value*frmZakaz.edQ.Value;
end;