![]() |
Assigning Existing Text To A Variable Within A Macro |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
This document explains how to assign on-screen text to variables in macro define mode. For information about copying on-screen text in normal mode into the Macro Editor, please see document 653874. There are two methods for doing this. One method is to use single-digit numbered variables. The other is to use text variables or multi-digit variables. USING SINGLE-DIGIT NUMBER VARIABLES While creating the macro in macro define mode, use variables with Ctrl-PgUp as if you were in normal mode (See document 634328). You will find that you will have to go through an extra step and choose 3 for Assign before you can give it the number. USING TEXT OR MULTI-DIGIT VARIABLES This involves several steps. 1. During macro define mode, assign blocked text to variable names with Ctrl+PgUp. Use two-digit (or higher) numbers or use letters in the variable names. 2. After you have defined as much of the macro as possible in macro define mode, close and save the macro with Ctrl+F10. 3. Go into the Macro Editor and add any other macro commands as necessary. This would include the {VARIABLE} command for execution of the variables that were defined in step 1. NOTE: If you look at these macros in the macro editor, the process of defining the variable is shown as: {Macro Commands}3 The PgUp command is shown as {Macro Commands}. The 3 is from choosing Assign on the menu. |
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. |