![]() |
{SYSTEM}right~ Command Finding A Function Cod |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: A customer would like to do an {IF} strong comparison using {SYSTEM}right~ equal to the Indent code. {IF}{SYSTEM}right~={Indent}~ {SYSTEM}right~ cannot find the Indent code because the {Indent} in the Macro Editor does not look like the Indent code you see in Reveal Codes on the normal edit screen. Solutions: The {SYSTEM}right~ command returns a number for function codes, not a keystroke. Thus, the {IF} command should be: {IF}{SYSTEM}right~= 49664~. For the most part, the program is designed so that the function code value and the keystroke for characters are the same. However, other function code values returns a number string. There are four special functions ([HRt], [SRt], [HPg] and [SPg]) that are control characters. This means that {SYSTEM}right~ thinks they are characters, but WP thinks they are functions. The [HRt], [SRt] and [SPg] happened (it was not deliberate) to have keystroke values that are the same as the function values, so they act like characters. |
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. |