TPlusMemo.Chars, CharCount properties
PlusMemo Help Send comments on this topic.
TPlusMemo.Chars, CharCount properties

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

property Chars[i: Integer]: Char;

property CharCount: Integer;

 

Description

Chars is a read only array property to get the individual characters in a TPlusMemo or TDBPlusMemo.  The index is zero based.

 

CharCount is used to determine the number of characters.

 

N.B:  There's an implicit CR/LF pair at the end of each paragraph that counts for two characters.  Furthermore, embedded control codes used for static text formatting also count as characters.  On the other hand, dynamic style information applied with method SetDynStyle , automatic keyword highlighting or automatic section highlighting do not put any additional characters in the control.