Function MemoLine() Foundation
Extracts text lines from a character string or from a memo field.
MemoLine( <cString> , ; [<nLineLen>] , ; [<nLine>] , ; [<nTabSize>] , ; [<lWrap>] ) --> cLine
MemoLine() extracts the line specified with <nLine> from the text <cString>. When the extracted string is shorter than <nLineLen> the character string is padded with blank spaces to the length <nLineLen>. When <nLine> contains a value which is greater than the entire number of lines in <cString>, a null string ("") is returned. If automatic word wrap is taken into consideration (by specifying .T. for <lWrap>), the last word in a line is treated as moved to the next line if it does not fit completely in the extracted line. If <lWrap> contains the value .F., entire lines are always extracted up to a hard return (Chr(13)+Chr(10)) and the first <nLineLen> characters are returned.
The memo function MemoLine() extracts character strings from text. It is comparable to the function SubStr(), but works on the basis of entire lines. MemoLine() is often used with the memo function MlCount() which determines the total number of lines in the text. MemoLine() returns a text line without formatting characters like tab (Chr(9)) and 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.