Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Replacing a character with a line feed

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

  • 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
  • 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
  • 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.