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

Word Count in Memo

edited January 2007 in General
Is it possible to do a word count calculation for a memo field? If so, how?

Thanks.

Comments

  • edited February 2007
    Hi Stephen,

    What are you ultimately trying to accomplish. It would be possible to get
    the word count from the DBMemo object however this would have to be after
    the memo has been generated so if you plan to move report items around based
    on this number it may be too late. You could also load the memo into a
    StringList or DBMemo object in Delphi to count the words before the report
    generates.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2007
    Thanks for the reply. I have a memo field which is required to be filled out
    by our staff. If the narrative portion of their report is filled out
    properly I should see a word count around 100 to 120 words for each report.
    I'd like to have a report that shows word count in a memo field by staff
    member to measure the amount of words keyed into each staff member's report.

  • edited February 2007
    Hi Stephen,

    Try using the TppMemo.OnPrint event to access the text inside that memo.
    There it would be possible to send that text to a word counting routine and
    display that value inside another component on your report such as a
    TppLabel.

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