Why is Fast Report VCL in Delphi raising a stack overflow exception when editing a variable?

Use this: frxrprt1. Variables'ReportTitle' := '''Sales Summary Report'''; The "variable" values are actually treated as full-fledged expressions; If you want it to be a string, it needs to be a standard pascal constant, using single-tick quoting; And since you're doing that from pascal code, you need to quote the quotes by double-quoting. You probably get the stack overflow because fast report's scripting engine is trying to make sense of whatever you wrote and runs into a recursive problem.

Thanks, this has saved me a lot of time – rajeem_cariazo May 11 at 10:58 I think a helper function like SetVarLiteral(rpt,varname,value:String) that sets rpt. Variablesvarname := ''''+value+''''; might be helpful. Otherwise, I would always worry someone didn't know about this.

– Warren P May 11 at 12:59.

Or you can use another way. Frxrprt1. Variables'ReportTitle' := QuotedStr('Sales Summary Report'); The function QuotedStr returns the string S, quoted with single quotes.

This means that S is enclosed in single quotes, and every single quote in S is doubled. It is equivalent to a call to AnsiQuotedStr(s, '''').

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions