Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Replacing a character with a line feed
rbuser
July 2004
edited July 2004
in
General
I've got a text file where a certain character should be replaced with a
line-feed in a memofied.
I didn't find any methods on the Memo field to start a new line if a certain
character is found..
Is their a way to do this?
Comments
nicocizik
July 2004
edited July 2004
Hi Wouter,
There is no automatic way to do this in ReportBuilder. You will need to
access the TppMemo.Lines.Text property. Then search through this string
replacing all your specific characters with the (#10) line feed character.
--
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbuser
August 2004
edited August 2004
Nico Cizik (Digital Metaphors) wrote:
Can you please advise, how the character should be setup? I'm doing the
following:
Memo1.Text := 'Some text' + '#10';
And all I get is 'Some text#10', and I can not get it to accept any
other combinations. It's a simple question, but any assistance would be
fantastic!
Regards,
John Kennison
rbuser
August 2004
edited August 2004
Maybe what you need is CRLF, that is #10#13. Try
memo1.text :+ 'Some text' + #10#13;
Note, no qoutes around the control codes. Or you could use
Memo1.lines.add('some text') for each line.
HTH
Dave
"John Kennison" wrote
This discussion has been closed.
Comments
There is no automatic way to do this in ReportBuilder. You will need to
access the TppMemo.Lines.Text property. Then search through this string
replacing all your specific characters with the (#10) line feed character.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Can you please advise, how the character should be setup? I'm doing the
following:
Memo1.Text := 'Some text' + '#10';
And all I get is 'Some text#10', and I can not get it to accept any
other combinations. It's a simple question, but any assistance would be
fantastic!
Regards,
John Kennison
memo1.text :+ 'Some text' + #10#13;
Note, no qoutes around the control codes. Or you could use
Memo1.lines.add('some text') for each line.
HTH
Dave
"John Kennison" wrote