Copies the contents of a text file to a memo field.
Syntax
APPEND MEMO MemoFieldName FROM FileName
[OVERWRITE] [AS nCodePage]
Arguments
MemoFieldName
Specifies the name of the memo field to which the file is appended.
FROM FileName
Specifies the text file whose contents are copied to the memo field. You must include the entire text file name, including its extension.
OVERWRITE
Replaces the current contents of the memo field with the contents of the file.
AS nCodePage
Specifies the code page of the text file copied to the memo field. Microsoft Visual FoxPro copies the contents of the text file and, as it copies the data to the memo field, automatically converts the data from the code page you specify to the code page of the table containing the memo field. If the table containing the memo field is not marked with a code page, Visual FoxPro automatically converts the data from the code page you specify to the current Visual FoxPro code page.
If you specify a value for nCodePage that is not supported, Visual FoxPro generates an error message. You can use GETCP( ) for nCodePage to display the Code Page dialog box, allowing you to specify a code page for the appended table or file.
If you omit the AS nCodePage clause or specify 0 for nCodePage, no code page conversion occurs for the text file.
Remarks
The entire text file is appended to the contents of the specified memo field in the current record if overwrite is omitted.