SUM troubles...

edited 9:18PM in FastReport 3.0
I have a problem with agregate function SUM. Unlike other functions,
it will not work when set by a FastScript command from OnStartReport
event handler.

I have a TfrxMemoView with name Memo1 inside the GroupFooter. In OnStartReport
event, I am under some conditions trying to set

Memo1.Text := '[SUM(<mydataset."field">,MasterData)]'

On one hand, if such expression is entered inside Memo1 manually in design time,
it will display the value. On other hand, if I use the example command:

Memo1.Text := '[PAGE#]'

it also works correctly. But the SUM function does not work, it does not
display anything...

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:18PM
    the band name must be the same as it is in the object inspector
    the 3rd parameter must be included
    ;)

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.