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.