Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Summing a variable

edited June 2005 in General
I created a variable on the detailband and i need to totalize it on the
foottergroupband, but i dont know how to do it?

Does anyone can explain me?

Comments

  • edited June 2005
    Hi Arturo,

    Inside the OnCalc event of the variable in the detail band, update the value
    of another variable located inside the group footer band. Be sure the
    timing of the initial variable is set to traversal.

    procedure TForm1.ppVariable1Calc(Sender: TObject, value: variant);
    begin
    value := Report.DataPipeline['AmountPaid'] + 100;
    ppVariable2.Value := ppVariable2.Value + value;

    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Nice!,

    thank you Nico.

This discussion has been closed.