Append Memo, Copy Memo
These commands let you move data between files and memo fields. Though Help implies that only text files can be manipulated this way, in fact these commands are also good for moving binary files in and out of memo files. You might, for example, store a compiled program in a memo field, then copy it to a file and run it when you need it. Memos can also store bitmaps, to be displayed when needed, if the resource overhead of OLE is too much for your targeted audience.
Usage |
APPEND MEMO MemoField FROM FileName [ OVERWRITE ] [ AS nCodePage ] COPY MEMO MemoField TO FileName [ ADDITIVE ] [ AS nCodePage ] |
Parameter |
Value |
Meaning |
MemoField |
Name |
The memo field into or out of which data is to be copied. |
FileName |
Name |
The file from or into which the data is copied. |
nCodePage |
Numeric |
The code page of the file. |
Example |
* Store a compiled program in a memo field APPEND MEMO mProgram FROM MyProgram.FXP OVERWRITE * Now you can save it out and run it later cProgramFile = SYS(3) + ".FXP" COPY MEMO mProgram TO (cProgramFile) DO (cProgramFile) |
See Also |
Alter Table, Append From, Copy File, Copy To, Create Table, Set NoCPTrans |