Difference between revisions of "MLCOUNT()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
==Class==
 
Memos
 
  
  

Revision as of 15:21, 28 October 2009


Purpose

Function to return the number of word-wrapped lines in a memo field


Syntax

MLCOUNT(<memofield>, <expN>)


See Also

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


Description

The MLCOUNT() function will return the number of word-wrapped lines in the specified <memofield> field where <expN> is the number of characters per line. The SET MEMOWIDTH command does not affect the length of word wrapping in the memo line count.


Example

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


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer