Difference between revisions of "MEMOLINE()"
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[MEMLINES()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]] | + | [[HTML_TOPLAINTEXT()]], [[MEMLINES()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]] |
==Description== | ==Description== |
Latest revision as of 09:26, 20 September 2016
Contents
Purpose
Function to extract a line of text from a memo field
Syntax
MEMOLINE(<memofield>, <expN1>, <expN2>[,<expN3>,<expL>])
See Also
HTML_TOPLAINTEXT(), MEMLINES(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOWIDTH
Description
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.
Example
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