Difference between revisions of "MEMLINES()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return lines needed to display a memo field
 
Function to return lines needed to display a memo field
 
  
 
==Syntax==
 
==Syntax==
 
MEMLINES(<memofield>)
 
MEMLINES(<memofield>)
 
  
 
==See Also==
 
==See Also==
[[HARDCR()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[SET WP]], [[TEXTEDIT()]]
+
[[HARDCR()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]]
 
+
  
 
==Description==
 
==Description==
 
The MEMLINES() function returns the number of lines needed to display the <memofield> as specified by the current MEMOWIDTH.  The MEMOWIDTH can be reset with the command SET MEMOWIDTH.
 
The MEMLINES() function returns the number of lines needed to display the <memofield> as specified by the current MEMOWIDTH.  The MEMOWIDTH can be reset with the command SET MEMOWIDTH.
 
  
 
==Example==
 
==Example==
Line 26: Line 22:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Memos]]
 
[[Category:Memos]]
 
[[Category:Memos Functions]]
 
[[Category:Memos Functions]]

Revision as of 06:39, 10 February 2012

Purpose

Function to return lines needed to display a memo field

Syntax

MEMLINES(<memofield>)

See Also

HARDCR(), MEMOLINE(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOWIDTH

Description

The MEMLINES() function returns the number of lines needed to display the <memofield> as specified by the current MEMOWIDTH. The MEMOWIDTH can be reset with the command SET MEMOWIDTH.

Example

use prospect
set memowidth to 40
m_last = memlines(comp_hist)
declare lines[m->m_last]
for n=1 to m->m_last
    lines[m->n] = mline(comp_hist,m->n)
next