FastReport 2026.1.2 VCL, Delphi 12.0 “error in expression” with string report variables.

Delphi 12 code creates a variables category, and adds a variable “Title” to the report, with string value ‘My Report Title’. When I add this variable to my report and preview it, I get an error:

‘Memo24: Error in expression ‘My report title’: ‘;’’ expected’

Within my Delphi code, I’ve tried:

setting the report variable to my delphi variable

setting the report variable to my delphi variable surrounded with quotation marks (“)

setting the report variable to my dephi variable surrounded with apostrophes (‘).

But each variation generates the same error.  Of note: I created other variables in my delphi code that aren’t string types, and they seem to work fine, specifically TDateTime, Integer, Boolean. It’s only the string data type that’s causing problems.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.