Custom Memo Component

edited January 2014 in Component Writing
Do you know which event I would use if I want to add a property to a
memo component to switch n/a to blank? I have something similar in a
custom DbText component, but did not see a GetTheText Event for the memo.



  • edited January 2014
    Hi Jeff,

    You can use the OnPrint event or the Band.BeforPrint events to alter the
    TppMemo.Lines property.

    In my quick testing, the following code gave the effect you are after.

    procedure TForm1.ppMemo1Print(Sender: TObject);
    if ppMemo1.Lines.Text = 'n/a' then


    Best Regards,

    Nico Cizik
    Digital Metaphors
This discussion has been closed.