Group's sum in group's header

edited 6:43AM in FastReport 3.0
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

Comments

  • edited 6:43AM
    I have moved the conversion FloatToStr() from GroupFooter band's
    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

Leave a Comment