DOCUMENT:Q99541 22-OCT-1999 [foxmisc] TITLE :How to Export Memo Data to a Text File Without an XCMD PRODUCT :Microsoft Fox Miscellaneous Products PROD/VER:MACINTOSH:2.01 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft FoxBASE+ for Macintosh, version 2.01 ------------------------------------------------------------------------------- The contents of a memo field can be exported to a text file without using an XCMD. The following code example exports data in a memo field to a text file called Memo.txt from the Video.dbf database file in the FoxBase2.01:Sample subfolder: USE Video GO TOP SET PRINTER TO Memo.txt SET PRINT ON DO WHILE !EOF() ? DESCRIPT ? "" SKIP ENDDO SET PRINT OFF SET PRINTER TO This code also exports the record number of the contents of each memo. Issuing a "SET TALK OFF" command at the beginning of the code snippet turns this feature off. The text file can then be viewed in applications such as Microsoft Word and Microsoft Excel. Additional query words: 2.01 segment FoxBASE+/Mac ====================================================================== Keywords : Technology : kbHWMAC kbOSMAC kbAudDeveloper kbFoxproSearch kbFoxBASE201Mac kbFoxBASESearch Version : MACINTOSH:2.01 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.