Microsoft KB Archive/93635

{| = FIX: &quot;Warning: Error in Line x of Label Definition&quot; Message =
 * width="100%"|

ID: Q93635

2.00 2.50 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0 and 2.5

SYMPTOMS
When you define a label and save it, the following error message is displayed:

Warning: Error in line x of label definition.

CAUSE
This error occurs when no database is open and no database alias is present.

RESOLUTION
Ignore the warning message by choosing the Save button.

MORE INFORMATION
Designing and saving a label definition without a database alias is advantageous when the label receives the output of a query. However, to save the label definition in the environment, a database alias is required. Failing to provide a database alias causes the above warning message to appear. .

The following steps are required if the label is designed to receive the output of either a query, the RQBE window, or a SQL SELECT statement:

1. From the Label menu, clear both the environment and the Add Alias

option. 2. Choose the Save button to ignore the warning. 3. If the label is designed to run from a database, do one of the

following.

a. Enter a database alias on each label definition line.

-or-

b. Open a database 4. Save the environment, reselect the Add Alias option, and choose the Save button. Additional reference words: FoxDos 2.00 2.50 buglist2.00 buglist2.50 fixlist2.50a definition err KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxtoolRqbe Keywords         : FxtoolRqbe kbbuglist kbfixlist Version          : 2.00 2.50 Platform         : MS-DOS Solution Type    : kbfix
 * }