count unique group

yvesarchambaultyvesarchambault Lacolle, Qu?©bec
edited 2:31AM in FastReport 4.0
Hi, on a report with group1, masterdata, footer1, how could I count the number of unique group1 ?

example :
Pierre
   1- 
   2- 
   3-
   4-
Yves
   1-
   2-
Sylvain
   1-

       Total number of group = 3

Thanks

Comments

  • yvesarchambaultyvesarchambault Lacolle, Qu?©bec
    edited 2:31AM
    My solution :

    create the variable 'Membres' in the report then add
    procedure GroupHeader1OnBeforePrint(Sender: TfrxComponent);
    begin
      set('Membres', FloatToStr(<Line>));                                                       
    end;
    

    Then put the variable Membres in the ReportSummary.

    Voila. I don't know if it is "?©l?©gant" but it works.

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.