Search code examples
fastreport

How to create pascal variable for FastReport?


I'm trying to make a variable on Fast Report version 2.5

I can only use the old version and trying make an object to be used for report. I saw the new version of Fast Report and they have a code editor.Is the version 2.5 also have this functionality?

I'm trying to test this:

enter image description here

Currently [MyVariable] can't be used as an object.


Solution

  • Declare MyVariable in the report data dictionary and use such script:

    begin
      MyVariable := '''' + 'Hello' + '''';
    end