Difference between revisions of "SET MEMOFORMAT"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=SET MEMOFORMAT=
 
 
 
 
==Class==
 
==Class==
 
Memos
 
Memos
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[SET MEMOCLEAR]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[SET PRERECORD]], [[SET WP]], [[HARDCR()]], [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOSAY()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[TEXTEDIT()]],
+
[[HARDCR()]], [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOSAY()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOCLEAR]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[SET PRERECORD]], [[SET WP]], [[TEXTEDIT()]]
  
  
Line 25: Line 22:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
procedure edit_memo
 
procedure edit_memo
 +
 
set memoformat off
 
set memoformat off
memoedit(comp_hist,5,10,20,70,(getuid()>100),;
+
memoedit(comp_hist,5,10,20,70,(getuid()>100),"Company History")
"Company History")
+
 
return</pre>
+
return</code>
  
  

Revision as of 15:34, 16 April 2009

Class

Memos


Purpose

Enable or disable memo formatting during and after editing operations.


Syntax

SET MEMOFORMAT ON | OFF | (<expL>)


See Also

HARDCR(), MEMLINES(), MEMOEDIT(), MEMOLINE(), MEMOREAD(), MEMOSAY(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOCLEAR, SET MEMOWIDTH, SET MEMOWINDOW, SET PRERECORD, SET WP, TEXTEDIT()


Description

If MEMOFORMAT is ON, the memo field is automatically formatted when it is saved. All the lines are word-wrapped into the field, and carriage returns are removed. Hard carriage returns may be retained by toggling Insert Mode ON before pressing the [RETURN] or [ENTER] key. When MEMOFORMAT is set OFF, this allows preformatted text to be held in the memo without it being reformatted as it is used. All spaces and carriage returns are stored in the memo field.

WARNING: Once a memo is saved with MEMOFORMAT set ON, all the formatting characters are removed. This command should always be left ON or OFF, not toggled. The default for SET MEMOFORMAT is OFF


Example

procedure edit_memo
 
set memoformat off
memoedit(comp_hist,5,10,20,70,(getuid()>100),"Company History")
 
return


Products

Recital Terminal Developer