![]() |
Macros - {MID} Command Uses A Count, Not An E |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The macro syntax that reads {MID}var~1~{LEN}var~-2~ does not return the correct value. This command works when the {LEN}var~-2 value is assigned to a variable before the {MID} command. This is the syntax that makes the statement work: {ASSIGN}temp~{LEN}var~-2 {MID}var~1~{VARIABLE}temp~~ Is this a problem with Category 1-Category 2 macro command interaction? Solutions: The documented syntax for the {MID} command is asking for a "count", not an expression. The only parameter for the {MID} command that can accept an expression is the first parameter of the three. |
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. |