How to add breakline (#13#10) via code?
Hi...
I like to pass a variable value from my delphi app to the report which should contains multiple lines. If I write something like this:
...this didn't work. How do I seperate multiple lines using code...?
Regards,
Marc
I like to pass a variable value from my delphi app to the report which should contains multiple lines. If I write something like this:
repEngine.Variables['HEADER'] := QuotedStr('Line1' + #13 + 'Line2');
...this didn't work. How do I seperate multiple lines using code...?
Regards,
Marc
Comments
the report variable expects an expression as value. #10 or #13 are not part of a valid expression as you can test by using the edit function of the variable in FR3.
What you could do, is to define a symbol which is not part of your string, but should represent the linebreak. Let's use a $ as example.
In Delphi you write then:
And in your report you use a memo with the following code:
That should work for you.
Thank you for answering. Well, this is a liltte bit circuitous but should work 8-)) Are there NO special characters (like \N) to solve this while writting...? If not, maybe that's a little improvement for FR4