Top Navigational Bar

Macros - More Than One Variable Portion In A
DocumentID: 651147
Revision Date: 29-Feb-96 8:29:04 PM

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

Problem

Solutions: A customer was trying to create more than one Variable portion in a macro. To do so they had to come up with a work around. WordPerfect will not accept the multiple variables since it does not like more than one variable portion to a variable. WP will not accept variable portions that come after the constant. The work around was found when assigning the variable and constant information to a single variable that WP will accept. This will come in handy when wanting to make variables for every day in the year. A variable called "xmyd" can be created where the x changes to access the appropriate month (m) and the y changes to access the appropriate day (d).

Here is an example in which a customer wanted to store "***" into 3m19d (March 19th). They did so with the assignment {ASSIGN}1~{VARIABLE}x~m~{VARIABLE}y~d~. This would get all the reference information for 3m19d into {VAR1}. A second assign command would then be used to insert the ***s. {ASSIGN}{VAR 1}~***~.

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.