Difference between revisions of "COPY MEMO"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Copy a memo field into a file
 
Copy a memo field into a file
 
  
 
==Syntax==
 
==Syntax==
 
COPY MEMO <memo fieldname> TO <filename> [ADDITIVE]
 
COPY MEMO <memo fieldname> TO <filename> [ADDITIVE]
 
  
 
==See Also==
 
==See Also==
[[APPEND MEMO]], [[MEMOREAD()]], [[MEMOWRITE()]], [[SET MEMOFORMAT]]
+
[[APPEND MEMO]], [[MEMOREAD()]], [[MEMOWRITE()]]
 
+
  
 
==Description==
 
==Description==
Line 16: Line 13:
 
====ADDITIVE====
 
====ADDITIVE====
 
The optional ADDITIVE keyword causes the memo to be appended to the end of the text file.  Without the ADDITIVE keyword, any existing text will be overwritten.
 
The optional ADDITIVE keyword causes the memo to be appended to the end of the text file.  Without the ADDITIVE keyword, any existing text will be overwritten.
 
  
 
==Example==
 
==Example==
Line 27: Line 23:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:NoSQL Commands]]
 +
[[Category:Data Export]]
 
[[Category:Memos]]
 
[[Category:Memos]]
[[Category:Memos Commands]]
 

Latest revision as of 05:42, 19 August 2022

Purpose

Copy a memo field into a file

Syntax

COPY MEMO <memo fieldname> TO <filename> [ADDITIVE]

See Also

APPEND MEMO, MEMOREAD(), MEMOWRITE()

Description

The COPY MEMO command copies the contents of a single memo field into a file. The <memo fieldname> of the current record in the active table is copied to the file specified by <filename>. If no file extension is specified, '.txt' is assumed.

ADDITIVE

The optional ADDITIVE keyword causes the memo to be appended to the end of the text file. Without the ADDITIVE keyword, any existing text will be overwritten.

Example

seek "JimL"
do while emp_code = "JimL"
    copy memo notes to comments additive
    skip
enddo