Custom Memo Component
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
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
This discussion has been closed.
Comments
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;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com