Difference between revisions of "MLINE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to extract a line of text from a memo | Function to extract a line of text from a memo | ||
− | |||
==Syntax== | ==Syntax== | ||
MLINE(<memofield>,<expN>) | MLINE(<memofield>,<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
− | + | [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[SET MEMOWIDTH]] | |
− | + | ||
==Description== | ==Description== | ||
The MLINE() function extracts a line of text from the specified <memofield>. The <expN> specifies the line number in the range 1 to MEMLINES(). The length of the line extracted is set by the command SET MEMOWIDTH. | The MLINE() function extracts a line of text from the specified <memofield>. The <expN> specifies the line number in the range 1 to MEMLINES(). The length of the line extracted is set by the command SET MEMOWIDTH. | ||
− | |||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
use prospect | use prospect | ||
− | |||
− | |||
set memowidth to 40 | set memowidth to 40 | ||
m_last = memlines(comp_hist) | m_last = memlines(comp_hist) | ||
Line 26: | Line 20: | ||
? m_line | ? m_line | ||
next | next | ||
− | |||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Memos]] | [[Category:Memos]] | ||
[[Category:Memos Functions]] | [[Category:Memos Functions]] |
Revision as of 05:01, 10 February 2012
Contents
Purpose
Function to extract a line of text from a memo
Syntax
MLINE(<memofield>,<expN>)
See Also
MEMLINES(), MEMOEDIT(), MEMOLINE(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), SET MEMOWIDTH
Description
The MLINE() function extracts a line of text from the specified <memofield>. The <expN> specifies the line number in the range 1 to MEMLINES(). The length of the line extracted is set by the command SET MEMOWIDTH.
Example
use prospect set memowidth to 40 m_last = memlines(comp_hist) for n=1 to m_last m_line = mline(comp_hist,n) ? m_line next