How to Suppress Blank Fields in a Text MergeID: Q121411 The information in this article applies to:
SUMMARYYou can suppress blank fields in a FoxPro text merge by programmatically creating the TEXTMERGE command and then using macro substitution to execute the command, as shown in the example below.
MORE INFORMATIONThis example assumes that you have a table with three fields
and that you want to perform a text merge that produces output in the
following format:
If the ADDRESS2 field is empty, you want the date to appear directly
underneath ADDRESS1, with no blank line where ADDRESS2 would normally
appear.
The following program illustrates how to create the desired output.
REFERENCESFoxPro "Language Reference," SET TEXTMERGE command Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.50c 2.60 2.60a print merge printmerge textmerge suppressing empty extra extraneous KBCategory: kbprg kbcode KBSubcategory: FxprgMacrosub |
|
Last Reviewed: August 28, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |