Number of lines in MemoView

Hi,

is there any possibility to get the number of lines of a memoview (with WordWrap = True) in an event?

Thanks in advance,
M.Hanisch

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:20PM
    yes in the memoview's onafterdataevent.

    sample to strip blanklines.
    begin
    for i := TfrxMemoView(Sender).Lines.Count - 1 downto 0 do
    begin
    if TfrxMemoView(Sender).Lines.Strings = '' then
    TfrxMemoView(Sender).Memo.Delete(i);
    end;
    end;

Leave a Comment