SUM troubles...

edited 5:15AM 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 5:15AM
    the band name must be the same as it is in the object inspector
    the 3rd parameter must be included
    ;)

Leave a Comment