Top Navigational Bar

Error - "! Label Already Defined" Running Mer
DocumentID: 630441
Revision Date: 29-Feb-96 3:02:36 PM

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

Problem

Symptoms: Running a merge that creates menus returns the error "! Label Already Defined." Solutions: The error message is valid. The user had several labels calling other labels of the same name. The duplicated labels included such names as EXIT TO MAIN Symptom MENU and TYPE IN VERBIAGE - OTHER. Each new occurrence of the label name was supposed to redirect control to a different menu (as defined by another label). For example, LABEL(menu1) defined a menu which branched (depending on menu selection) to LABELs menu2, menu3, menu4, etc. The routines defined by LABELs menu2, menu3, menu4, etc., were also menus that branched to other labels. There were labels defined under menu2 and menu3 and menu4 (etc.) with identical label names (such as EXIT TO MAIN MENU).

The workaround for this user was to eliminate these duplicate label names and actually incorporate the code from these labels directly into the CASEOF statements under the SWITCH routines for each main label.

How/Why:
A macro was written to copy and paste the LABEL names throughout the document into the Document 2 screen, and then assign each one to a variable and search the remainder of the document for duplicate names. The macro found the duplication.

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.