![]() |
Macros - Building A Secondary Merge File From |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Solutions: The following macro will build a secondary merge file from a clear screen and will loop until the word "end" is typed into the {Text} command that displays "Enter Title." The number of messages and the message prompts may be modified as desired; however, the number of {TEXT} commands in the Build subroutine must match the number of {VAR} commands in the Display subroutine. Please note, the {VAR} command can be created in the Macro Edit screen by pressing Ctrl-V and then Alt-(number between 0 and 9, e.g., Alt-3). {LABEL}command~ {CALL}build~ {CALL}display~ {RETURN} {LABEL}build~ {TEXT}1~Enter Title: ~ {IF}"{VAR 1}"="end"~ {QUIT} {END IF} {TEXT}2~Enter Last Name: ~ {TEXT}3~Enter First Name: ~ {TEXT}4~Enter Street Address: ~ {TEXT}5~Enter City, State: ~ {TEXT}6~Enter Zip Code: ~ {RETURN} {LABEL}display~ {VAR 1}{END FIELD} {VAR 2}{END FIELD} {VAR 3}{END FIELD} {VAR 4}{END FIELD} {VAR 5}{END FIELD} {VAR 6}{END FIELD} {MERGE CODES}e {CALL}command~ {RETURN} |
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. |