![]() |
Search Finds Regular Tabs And Decimal Tabs |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: In WordPerfect 5.0, a Decimal Tab showed as [Align][C/A/Flrt]. The customer had a macro in WP 5.0 that searched and replaced all tabs with spaces. This did not replace any decimal tabs, which is what the user wanted. In WP 5.1, decimal tabs are displayed [DEC TAB] in Reveal Codes. The Search and Replace now replaces all tabs, as well as the decimal tabs. Is there any way to avoid replacing the decimal tabs? Solutions: WordPerfect is designed to search for all types of Tab codes with just the [TAB] code. Otherwise, an absolute tab in a file created in WP 5.0 could not be found by searching for a tab in WP 5.1. A work around for this situation is to search for the tab and assign the value to a system variable left. Then, compare the value of the system variable to a variable that contains the value 49410, which is the system variable value of a regular tab. Use an if statement that will replace the tab with whatever the user wants if the variables have the same value. An example of a macro that could be used is as follows: {ON NOT FOUND}{QUIT}~ {ASSIGN}1~49410~ {SEARCH}{TAB}{SEARCH} {ASSIGN}2~{SYSTEM}left~~ {IF}{VARIABLE}2~={VARIABLE}1~~ {BACKSPACE}{;}ENTER WHAT YOU WANT TO REPLACE THE TAB WITH~ {END IF} {GO}Search~ The customer can place the [DEC TAB] code on the search line by pressing Ctrl-F6. Status: Enhance ***|enhance|*** Press Enter on link token to view statement. |
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. |