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

row count of Memo

edited November 2003 in General
Hi

How can i get to know count or rows that will be printed in TppDBMemo?

Thanx

Comments

  • edited November 2003
    Hi Sergey,

    The TppMemo.Lines property is a TStrings object that stores each line of
    text as each string in the list. TppMemo.Lines.Count would be the count of
    rows in a TppMemo.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Ok, but text does not containing line feed symbols and component self
    forcing that feature

  • edited November 2003
    Hi Sergey,

    That's right, the TppMemo.Lines TStrings contains enteries for each line in
    the memo, whether it was forced by the word wrap feature or a carrage
    return/line feed was encountered. The CRLF will then be removed from the
    text. I am a bit unclear about what you are trying to accomplish. If you
    simply need to find out how many rows are in a memo, (to make some kind of
    measurement calculation perhaps) the TppMemo.Lines.Count should be the right
    option for you.

    --
    Best Regards,

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