Top Navigational Bar

Creating An Array With A Macro
DocumentID: 638111
Revision Date: 29-Feb-96 3:04:50 PM

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

Problem

Solutions: In the WordPerfect Macro Language you can create an array structure. However, the array works differently depending on whether your variable is before the constant or after. As far as getting the information into the variables, it doesn't seem to matter which goes first. As far as getting that information from the variables, the variable must be before the constant. The following macro array will work:

{FOR}1~1~5~1~
{TEXT}{VAR 1}name~What is the name?~
{END FOR}

{FOR}2~1~5~1~
{VARIABLE}{VAR 2}name~
{END FOR}

If you have the VAR command after the "name" instead of before, (e.g., {VARIABLE}name{VAR 2}~) your output will be just the numbers 1 through 5 rather than the names inside the variables.

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.