MEMOLINE()

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Function to extract a line of text from a memo field


Syntax

MEMOLINE(<memofield>, <expN1>, <expN2>[,<expN3>,<expL>])


See Also

HARDCR(), MEMLINES(), MEMOEDIT(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOWIDTH, SET MEMOWINDOW, TEXTEDIT()


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
set scroll to 4,15
@4,0 say " "
m_last = memlines(comp_hist)
for n=1 to m->m_last
    m_line = memoline(comp_hist,40,m->n)
    ? m_line
next
set scroll to default
clear


Products

Recital Server, Recital