TITLE: How to Use the MergeAction Macro Function PRODUCT: Ami Pro 2.0 DATE: 05-Nov-1991 PROBLEM: The macro function MergeAction does not perform the specified merge function. SOLUTION: Currently the MergeAction function in Ami Pro release 2.0 is not preforming the specified merge function. The macro function AppSendMessage, however, can be used instead of the MergeAction function. AppSendMessage can be used to perform 100% of the functionality of MergeAction. The following are AppSendMessage values for merge functions that should be performed with MergeAction: 0x10000 = Print this document and prepare the next one. 0x20000 = Do not print this one and prepare the next one. 0x30000 = Print this one and print the rest of them without stopping. 0x40000 = Do not print this one and cancel the rest of the merge. The following example macro illustrates how AppSendMessage can be used instead of MergeAction. FUNCTION MERGE1() fname = "C:\AMIPRO\DOCS\RECORDS.SAM" if (MergeMacro(0, fname)) while AppSendMessage("", 0x111, 116, 0x20000) '= While (MergeAction(2)) message("This record is being skipped") wend AppSendMessage("", 0x111, 116, 0x40000) '= MergeAction(4) endif END FUNCTION