![]() |
Merge And Macro Variables Use 7 Characters To |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: A customer used the {ASSIGN} command in a primary merge file to assign values to two variables. The first variable was named ABCDEFG, the second one was named ABCDEFGH. When the customer called up either one of these variables, the value of the second variable (ABCDEFGH) was returned. It appears as though only the first seven characters of the variable name were recognized. However, page 952 of the reference manual states that variables of up to 15 characters long can be used to determine uniqueness. To duplicate the error, create a primary merge file containing the following: {ASSIGN}ABCDEFG~this is the first~ {ASSIGN}ABCDEFGH~ this is the second~ {VARIABLE}abcdefg~ {VARIABLE}abcdefgh~ Performing a merge with the above codes produces the following output: this is the second this is the second Solutions: Merge only looks at the first seven characters when assigning variables. In this case, the first seven characters in both variables were the same. To WP, both variables were exactly the same and the output reflected this. This also applies to assigning variables in macros. The reference manual is incorrect and will be changed to explain that up to seven characters, not 15, may be used to determine uniqueness. |
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. |