Top Navigational Bar

Finding The End Of A File During A Macro
DocumentID: 606604
Revision Date: 29-Feb-96 1:31:44 PM

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

Problem

Solutions: If a customer wants to know when the cursor is at the end of the file during a macro, the customer can assign a variable to {SYSTEM}Right~ and then use the {IF EXISTS} command to find the end.

For example:
{LABEL}top~
{ASSIGN}1~{SYSTEM}right~~
{IF EXISTS}1~{Right}{GO}top~{ELSE}{BELL}{QUIT}{END IF}

The following macro is another example:
{IF}"{SYSTEM}right~"=""~

{ELSE}

{END IF}

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.