Function to extract a line of text from a memo field
MEMOLINE(<memofield>, <expN1>, <expN2>[,<expN3>,<expL>])
The MEMOLINE() function extracts a formatted line of text from the specified <memofield>. The <expN1> is the number of characters per line and <expN2> is the line number to extract. The <expN3> is included for compatibility with the Clipper tab size setting, but its value is ignored. The <expL> determines whether word wrapping is on or off. If <expL> is .T. (True), and the line length indicated by <expN1> falls in the middle of a word, that word will not be returned until the next line is extracted. If <expL> is .F. (False), the number of characters specified by <expN1> is returned. The default setting of <expL> is .T. (True).
The length of the line extracted is not affected by the SET MEMOWIDTH command.
use prospect m_last = memlines(comp_hist) for n=1 to m->m_last m_line = memoline(comp_hist,40,m->n) ? m_line next clear