A memo field with calculated values
Hello,
i have this pascalscript in a Fastreport with a Header and a MastaData band.
i have this pascalscript in a Fastreport with a Header and a MastaData band.
var
  tmpYear, tmpMonth, tmpDay : Word;
  CAfaSatz: TDateTime;
   Â
begin
  DecodeDate(<frxDBDataset_Main."AD">, tmpYear, tmpMonth, tmpDay); Â
  tmpYear := tmpYear + <frxDBDataset_Main."BIS">; Â
  CAfaSatz := EncodeDate(tmpYear, tmpMonth, tmpDay);                                             Â
end.
How can I show the value from CAfaSatz in my Report. The value must be new calculated for every dataset. Where I have make the mistake ?
Comments
I suggest it returns a string, already formatted with your needs:
Cheers