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

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.

Thanks

Comments

  • 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);
    begin
    if ppMemo1.Lines.Text = 'n/a' then
    ppMemo1.Lines.Clear;

    end;

    Best Regards,

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