![]() |
Macros-Use {ON NOT FOUND} To Ignore "Not Foun |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer has created a WordPerfect macro that does not perform keystrokes that do work manually. To duplicate: The macro enters the Print: Select Printer menu (Shift-F7, S). Then, use the Name Search option and search for a printer name on the printer list. If the printer name is not on the list, the macro will stop after the first character that does not match the search string. If the same keystrokes are performed manually, even though the printer name is not found, the cursor will still be placed on a printer name in the list. The cursor will appear on the first printer selection after the printer name typed in the search string. If the customer presses Enter, WP will select the printer which is highlighted although it doesn't match the search string. There is no error message displayed indicating that the printer was not found. The customer would like WP to return an error message or allow the search to perform in the macro the same way as it does manually. Solutions: The Name Search function is returning a "Not Found" condition instead of an "Error" condition. Macros can handle this with the {ON NOT FOUND} command, so the macro will know what to do in case a "Not Found" condition is returned. Using {ON NOT FOUND}~ will cause the macro to ignore the condition and continue running. |
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. |