Using aggregate functions in the scrip

Fer CastroFer Castro Ciudad de M?©xico
edited 5:57PM in FastReport VCL 5
Hello all

I am creating some reports components with script and I want add SUM function to one object:

Memo6FEQG := TfrxMemoView.Create(FooterEQG);
Memo6FEQG.Left := 16.20* fr1cm;
Memo6FEQG.Top := 0.00* fr1cm;
Memo6FEQG.Width := 4.20* fr1cm;
Memo6FEQG.Font.Style := fsBold;
Memo6FEQG.DataSetName := 'frxSecEQG';
Memo6FEQG.DataField := 'SumaAsegurada';
Memo6FEQG.HAlign := haCenter;


---> [SUM(<frxSecComEQG."SumaAsegurada">,DataEQG)]

How can add the SUM function to the TfrxMemoView object?

Thanks in advance and best regards.

FerCastro

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.