Microsoft KB Archive/97163

{| = INFO: General Text Merge Functionality =
 * width="100%"|

ID: Q97163

2.50 2.50a | 2.00 2.50 2.50a

WINDOWS   | MS-DOS kbprg 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 FoxPro for Windows 2.6x &quot;Developer's Guide.&quot;

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)
 * & (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 < >).
 * 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
 * }