Function MlCount() Foundation
Determines the number of lines in a character string or memo field.
MlCount( <cString> , ;
[<nLineLen>], ;
[<nTabSize>], ;
[<lWrap>] ) --> nLineCount
MlCount() returns the total number of lines in <cString> as an integer. The number of lines depends on the formatting specified by the line length <nLineLen>, tab size <nTabSize>, and word wrap <lWrap> arguments.
The memo function MlCount() determines the number of lines in a formatted character string based on the number of characters per line. It is often used with the function MemoLine() to extract text line by line.
If automatic word wrap is taken into consideration (.T. is passed for <lWrap>), the last word in a line is wrapped to the next line if it does not fit completely on the current line. When <lWrap> contains the value .F., lines are defined by the presence of a hard return (Chr(13)+Chr(10)).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.