SUM troubles...
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...
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
the 3rd parameter must be included