Difference between revisions of "COPY MEMO"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=COPY MEMO=
 
 
 
==Class==
 
Memos
 
 
 
 
==Purpose==
 
==Purpose==
 
Copy a memo field into a file
 
Copy a memo field into a file
Line 11: Line 4:
  
 
==Syntax==
 
==Syntax==
COPY MEMO <memo fieldname> TO <filename>
+
COPY MEMO <memo fieldname> TO <filename> [ADDITIVE]
 
+
[ADDITIVE]
+
  
  
Line 31: Line 22:
 
seek "JimL"
 
seek "JimL"
 
do while emp_code = "JimL"
 
do while emp_code = "JimL"
copy memo notes to comments additive
+
    copy memo notes to comments additive
skip
+
    skip
 
enddo
 
enddo
 
</code>
 
</code>
Line 38: Line 29:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Memos]]
 +
[[Category:Memos Commands]]

Latest revision as of 15:20, 10 November 2009

Purpose

Copy a memo field into a file


Syntax

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


See Also

APPEND MEMO, MEMOREAD(), MEMOWRITE(), SET MEMOFORMAT


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


Products

Recital Server, Recital