Topic: how to make a subtraction

how to make a subtraction as image?
(150-115 = 35)

Post's attachments

Attachment icon foto.jpg 341.23 kb, 267 downloads since 2015-07-18 

Domebil

Re: how to make a subtraction

You should create event OnChange for these two TableGrids

procedure Form1_TableGrid1_OnChange (Sender: string);
begin
    Form1.Edit1.Value := Form1.TableGrid2.Columns[3].Footer.FormulaValue - Form1.TableGrid1.Columns[2].Footer.FormulaValue;
end;

procedure Form1_TableGrid2_OnChange (Sender: string);
begin
    Form1.Edit1.Value := Form1.TableGrid2.Columns[3].Footer.FormulaValue - Form1.TableGrid1.Columns[2].Footer.FormulaValue;
end;

Also you can attach your project for the help.

Dmitry.

Re: how to make a subtraction

works perfectly thanks!

Domebil