![]() |
Startup Options That Invoke A Macro And Retri |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer would like to use a startup macro that changes the default directory, and he would like to automatically pull up a document as he enters WordPerfect. If he uses WP/M-MACRONAME from DOS, it changes him to the desired directory. If he uses WP FILENAME from DOS, a document is retrieved as he enters WP. However, if the two startup options are combined (e.g., WP/M-MACRONAME FILENAME) neither work. The macro changes to the root directory and the filename is in root directory. The only way around this is to state the full path of the file, even though the first macro changes the path already. Solutions: The commands are prioritized for the startup options on the command line. First, WordPerfect tries to retrieve the document and then tries to run the macro. The error when retrieving the document causes the termination of the macro. The customer could have the macro change to the directory first and then retrieve the file or he could use an {ON ERROR} command to trap the error so the macro would continue. |
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. |