![]() |
Macro - Not Working Without {DISPLAY ON} |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
PROBLEM A customer's macro that deletes text surrounded by paired codes does not work properly when display is off. If the macro contains a {DISPLAY ON} or a {SPEED}n~ command, then it works properly. ANSWER The example in this answer deals with [BOLD] paired codes, but it can apply to any paired codes. This answer is from Development: "When display is off, or when display is on and auto rewrite is off, the [bold] code remains even after [BOLD] is deleted. When the DEL key is pressed, and the [bold] code is to the right of the cursor, WordPerfect just deletes the [bold] code (even though simply moving past it would have deleted it anyway) because the user might be in Reveal Codes and would expect only the [bold] code to disappear, not the code which follows it. Admittedly this can cause some inconsistencies, but the problems introduced by 'fixing' this might be worse. In any case, you will not have this problem if your macro always deletes the end code first when deleting paired codes, or if it simply moves past isolated end codes to delete them instead of trying to delete them." |
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. |