To get the number of characters in body

    • Offizieller Beitrag

    The simplest count method is
    GetTextLen

    if you need something spacial create a loop over all paragraphs and count the characters in a loop:

    Code
    par := WPRichText.BodyText.FirstPar;
    while par<>nil do 
    begin
      for i := 0 to par.CharCount-1 do
      begin
        if not par.IsSpace(i) then inc(count);
      end;
      par := par.next;
    end;


    the above ignores space when counting.