![]() |
Macro To Determine Whether Or Not Document Ha |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer is trying to create a macro that will determine if his document has been modified. It will save it if it has been modified or exit WP if it has not been modified. See below for the code segment: {IF}{STATE}document~&1~ {Exit}yfilename{Enter}y {ELSE} {Exit}ny {END IF} If the timed backup has done its job the macro will exit WP even if it has been modified. If he uses {IF}{STATE}document~&4~, the statement does work but, the flag is not reset even if he does save the document before running the macro. Solutions: We need to know what resets the flag for the {SYSTEM}Document~ mask 4. The mask 4 flag is only reset when generating. For clarification, please refer to pg. 918 Appendix K in the Reference Manual. |
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. |