General Text Merge Functionality

Last reviewed: June 27, 1995
Article ID: Q97163
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a

SUMMARY

The TEXTMERGE command is used in FoxPro to create form letters, documents, and programs. Text can be merged with several text merge components (listed below) to create printed documents.

MORE INFORMATION

Text merges are documented in Chapter 11 of the "Developer's Guide."

The text merge components are defined as:

  • Contents of database fields
  • Contents of memory variables
  • Contents of array elements
  • Results of functions
  • Expressions and results of calculations

Commands and functions applicable to text merges are:
  • \|\\
  • TEXT...ENDTEXT
  • SET TEXTMERGE
  • SET TEXTMERGE DELIMITERS
  • _TEXT
  • _PRETEXT
  • & (macro substitution)

Conditions that apply to text merges are:
  • TEXTMERGE must be on; TALK must be off.
  • The components to be evaluated must be enclosed in text merge delimiters (the default delimiters are << and >>).
  • The component(s) must be placed in a TEXT ... ENDTEXT structure or on a line starting with \ or \\.

For code samples and additional information about text merges, see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q97644
   TITLE     : How to Merge Text from a Memo Field

   ARTICLE-ID: Q100550
   TITLE     : How to Perform a Text Merge Without Using Memo Fields

   ARTICLE-ID: Q94349
   TITLE     : Using FoxPro Text Merge Feature with Multiple Databases


Additional reference words: FoxDos FoxWin 2.00 2.50a Text Merge Sample
Coding
KBCategory: kbprg
KBSubcategory: FxprgMacrosub


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.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.