Top Navigational Bar

Macros {SYSTEM} With Hard Page
DocumentID: 650901
Revision Date: 29-Feb-96 8:29:02 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: A macro won't work on a [HRt] with the {SYSTEM}right~ command in it. Why do you have to compare some codes with their string equivalents and others with their numerical values? Many people don't know what the numerical value for certain codes are. The only way they can find them is to look in the REVEALCO.WPM macro or use a macro {SYSTEM}right~ to return the value. An [HPg] wants to return a delete end of page and an [SRt] returns a space. Solutions: The {SYSTEM}right~ command returns a function code value, not a keystroke. It was designed so that the function code value and keystroke for characters are the same, so if a character is to the right, using the {SYSTEM}right~ value as a keystroke works nicely. Other function codes values cannot work that nicely, thus it returns a number string.

WordPerfect has four special functions, [HRt], [SRt], [HPg], and [SPg], which are control characters, this means {SYSTEM}right~ thinks they are characters, but WP thinks they are functions and this is what is causing the problem. The [HRt], [SRt], and [SPg] happened (it was not deliberate) to have keystroke values the same as the function values, so they act like characters, while the [HPg] was not so lucky.

This could be changed. However, it can only be changed when there is a major file format change because all existing macros which have an [HPg] keystroke will be broken. Until then, users must be taught that they should treat the [HPg] as a function and not a character (i.e., they should always check it's value before using it in a document.) There aren't any useful and easy to use macros which blindly use any {SYSTEM}right~ value in a document; some processing should always be done.

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.