Top Navigational Bar

Macros - Using {NEST} Instead Of {CHAIN} In A
DocumentID: 652212
Revision Date: 29-Feb-96 8:29:14 PM

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

Problem

Solutions: The {CHAIN} command is a macro command that stores the name of the indicated macro and executes it after the current macro is completed. If more than one {CHAIN} command is entered in the current portion of a macro, only the last is executed when the macro is completed. This is helpful to know if using a {CHAR} and {CASE} statement and only the last {CHAIN} command is being read.
The {CHAIN} command will not execute if the calling macro is terminated by the following commands: {QUIT}, {RETURN CANCEL}, {RETURN ERROR}, {RETURN NOT FOUND}, or {RESTART}. It make sense if the logic is that the {RETURN} commands return to a previous level so the {CHAIN} command never executes.
Users wishing to execute more than one macro within the parent macro may want to use the {NEST} command in place of {CHAIN}. The {NEST} command transfers control to another macro. When the nested macro has finished, execution returns to the parent macro. It is somewhat like placing the contents of the specified macro where the {NEST} command is.

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.