Top Navigational Bar

Macro Example: Invoice Renumbered After Every
DocumentID: 621054
Revision Date: 29-Feb-96 1:39:32 PM

The information in this document applies to:
WordPerfect® 6.0 for DOS

Problem

Solutions: This macro allows you to have an invoice constantly renumbered every time it is merged by using a temporary file. The file INVOICE.TMP will contain only the starting number for the invoice. The INVOICE.FRM file will use the VARIABLE() merge command to place the invoice number.

      PERSIST(invoice)
      DISPLAY(off!)
      FileOpen("INVOICE.TMP";WordPerfect_60!)
      BlockOn(WordMode!)
            invoice:=?BlockedText
            invoice:=invoice+1
      DeleteToBeginningofWord
      Type(invoice)
      Save Close
      MergeFileAssociate("INVOICE.FRM";"")
      MergeRun(FormFile!;"INVOICE.FRM";NoData!;;ToCurrentDoc!)

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.