Difference between revisions of "MEMOREAD()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to read an external file into a memo field
 
Function to read an external file into a memo field
 
  
 
==Syntax==
 
==Syntax==
 
MEMOREAD(<filename>, [<memofield>, [<expL>]]
 
MEMOREAD(<filename>, [<memofield>, [<expL>]]
 
  
 
==See Also==
 
==See Also==
[[HARDCR()]], [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOSOFTCR]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[TEXTEDIT()]]
+
[[HTML_TOPLAINTEXT()]], [[MEMLINES()]], [[MEMOLINE()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]]
 
+
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
Setting <expL> to a value of TRUE will cause return characters to be retained during the MEMOREAD() even if MEMOFORMAT is ON.  Setting the <expL1> value to .F. will format the memo during the MEMOREAD() operation, stripping carriage return characters during input.  The default setting for the <expL> parameter is .F..
 
Setting <expL> to a value of TRUE will cause return characters to be retained during the MEMOREAD() even if MEMOFORMAT is ON.  Setting the <expL1> value to .F. will format the memo during the MEMOREAD() operation, stripping carriage return characters during input.  The default setting for the <expL> parameter is .F..
 
  
 
==Example==
 
==Example==
Line 28: Line 24:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Memos]]
 
 
[[Category:Memos Functions]]
 
[[Category:Memos Functions]]

Latest revision as of 09:26, 20 September 2016

Purpose

Function to read an external file into a memo field

Syntax

MEMOREAD(<filename>, [<memofield>, [<expL>]]

See Also

HTML_TOPLAINTEXT(), MEMLINES(), MEMOLINE(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOWIDTH

Description

The MEMOREAD() function reads an external text file <filename> into a character string. If the optional <memofield> is specified then the contents of the text file are read into the MEMO field. The MEMOREAD() function returns .T. if the operation was successful. There is no limit to the size of the text file to be read into the memo field.

Setting <expL> to a value of TRUE will cause return characters to be retained during the MEMOREAD() even if MEMOFORMAT is ON. Setting the <expL1> value to .F. will format the memo during the MEMOREAD() operation, stripping carriage return characters during input. The default setting for the <expL> parameter is .F..

Example

// To transfer company history notes
use prospect
memowrite("tempname.txt",comp_hist)
seek "00234"
if found()
    memoread("tempname.txt",comp_hist)
endif