home *** CD-ROM | disk | FTP | other *** search
/ Windoware / WINDOWARE_1_6.iso / misctext / ami20tn / ap000127.txt < prev    next >
Text File  |  1992-01-02  |  2KB  |  36 lines

  1. TITLE:   How to Use the MergeAction Macro Function
  2. PRODUCT: Ami Pro 2.0
  3. DATE:    05-Nov-1991
  4.  
  5. PROBLEM: 
  6.  
  7. The macro function MergeAction does not perform the specified merge function.
  8.  
  9. SOLUTION: 
  10.  
  11. Currently the MergeAction function in Ami Pro release 2.0 is not preforming 
  12. the specified merge function.  The macro function AppSendMessage, however, can 
  13. be used instead of the MergeAction function.  AppSendMessage can be used to 
  14. perform 100% of the functionality of MergeAction.
  15.  
  16. The following are AppSendMessage values for merge functions that should be 
  17. performed with MergeAction:
  18.  
  19.  0x10000 = Print this document and prepare the next one.
  20.  0x20000 = Do not print this one and prepare the next one.
  21.  0x30000 = Print this one and print the rest of them without stopping.
  22.  0x40000 = Do not print this one and cancel the rest of the merge.
  23.  
  24. The following example macro illustrates how AppSendMessage can be used instead 
  25. of MergeAction.
  26.  
  27.  FUNCTION MERGE1()
  28.  fname = "C:\AMIPRO\DOCS\RECORDS.SAM"
  29.  if (MergeMacro(0, fname))
  30.     while AppSendMessage("", 0x111, 116, 0x20000) '= While (MergeAction(2))
  31.        message("This record is being skipped")
  32.     wend
  33.     AppSendMessage("", 0x111, 116, 0x40000) '= MergeAction(4)
  34.  endif
  35.  END FUNCTION