Group's sum in group's header
I have double pass property set on and in the group footer OnBeforePrint I am adding the group some to an array of variables using the Set function:
Set(<SalePrice."FirmRef">,<SUM(<SalePrice."Volume">,MasterData1)>);
When I change it to store the sum as stringified value:
Set(<SalePrice."FirmRef">,
FloatToStr(<SUM(<SalePrice."Volume">,MasterData1)>));
then I am getting an error message : "invalid variant type conversion"
Please, what am I doing wrong ?
Boro
Set(<SalePrice."FirmRef">,<SUM(<SalePrice."Volume">,MasterData1)>);
When I change it to store the sum as stringified value:
Set(<SalePrice."FirmRef">,
FloatToStr(<SUM(<SalePrice."Volume">,MasterData1)>));
then I am getting an error message : "invalid variant type conversion"
Please, what am I doing wrong ?
Boro
Comments
OnBeforePrint event into GroupHeader band event and it helped.
Maybe the FloatToStr() function cannot be called from GroupFooter event ?
I saw something similar in the user manual. Is it true ?
Boro