1 (edited by alsu 2016-06-22 08:21:12)

Topic: sum of two fields

hi..dimitry .. can u help me for finding balance from total and adwance  two fields with discount and with out discounts?
pls give me the solution

Post's attachments

Attachment icon example.rar 292.44 kb, 797 downloads since 2016-06-22 

Re: sum of two fields

Hello Alsu,
One way is to do it with a small script.
I have added it to your project and attached it;  you might want to do it differently but at least it will show you how to write it.
Hope this helps,
Derek.

Post's attachments

Attachment icon alsu.zip 336.52 kb, 832 downloads since 2016-06-22 

Re: sum of two fields

thxxxxx...drek
wrk fine....!!

4 (edited by ctiozon.hex 2021-05-25 03:01:00)

Re: sum of two fields

procedure frmPaymentWindow_pwEdSweep_OnChange (Sender : String);
begin
    frmPaymentWindow.pwEdBrokerFee.value := frmPaymentWindow.pwEdPaid.value - frmPaymentWindow.pwEdSweep.value;
end;
procedure frmPaymentWindow_pwEdPaid_OnChange (Sender : String);
begin
    frmPaymentWindow.pwEdBrokerFee.value := frmPaymentWindow.pwEdPaid.value - frmPaymentWindow.pwEdSweep.value;
end;
begin
end.

Hi Tried the same logic provided however cant seem to make it work in my end.. I am not sure what I am doing wrong. hope someone could help me with the correct code.

Update: nvm got it figured out :-)