Copies the contents of the specified memo field to a file.

Syntax

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

<memo field>

The memo field to copy.

TO <filename> | ?

The name of the text file where text will be copied. The default extension is .TXT.

ADDITIVE

Appends the contents of the memo field to the end of an existing text file. Without the ADDITIVE option, dBASE Plus overwrites any previous text in the text file.

Description

Use COPY MEMO to export memo file text in the current record to a text file. You can also use COPY MEMO to copy images or other binary-type data to a file; however, binary fields are recommended for storing images, sound, and other user-defined binary information.

If you specify the ADDITIVE option, dBASE Plus appends the contents of the memo field to the end of the named file, which lets you combine the contents of memo fields from more than one record. When you don't use ADDITIVE, dBASE Plus displays a warning message before overwriting an existing file if SET SAFETY is ON. You can store only a single image in either a memo field or in a file, so do not use the ADDITIVE option of COPY MEMO when copying an image to a file. (RESTORE IMAGE can display an image stored in either a memo field or a text file.)

OODML

Use the Field object’s copyToFile( ) method.