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

Convert Memo to String

edited May 2007 in General
I have a memo field with description of a part. I am creating a text file
output that needs the description broken down into 2 separte fields
within the output.

How do i convert the memo to text?



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited May 2007
    Hi,

    For future reference, please use your real name when posting to these
    newsgroups.

    The memo text can be accessed using the Lines TStringList property of the
    component. If you would like to access the memo text as a string, you can
    use the TppMemo.Lines.Text property.

    Note that if you are using a DBMemo, you will need to wait until the memo
    has been populated from the DB before accessing the text. The OnPrint event
    would most likely work in this case.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.