inline SUM to accumulate values

edited 12:54AM in FastReport 3.0
I need to accumulate a value inline. Example:

number: value (accumulated value)
1: 10 (10)
2: 15 (25)
3: 5 (30)

the fields: number and value are placed on a DetailDataBand1 with DetailData1.
When placing [SUM(<value>, DetailData1)] for the accumulated value on the DatailDataBand, nothing is displayed.

How to solve?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:54AM
    typically
    at the beginning of report script page declare var of required type.
    ie
    var
    myaccumvar: integer;
    this creates a variable which is globall to all report events.

    in obp event of masterband initialize to 0
    myaccumvar := 0;

    in obp of detailband or obp event of memo
    myaccumvar := myaccumvar + whatever;

    in memo use [myaccumvar] for display.
    ;)
  • edited 12:54AM
    I need a group total on each line, to calc a percent of group total for each line. how can I do this? If I use the SUM() function it is blank.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.