Microsoft KB Archive/129313

{| = PRB: Graph Wizard Buttons Are Disabled =
 * width="100%"|

ID: Q129313

2.60a WINDOWS kbtool kbprb

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS
When the first screen of the Graph Wizard is shown, all four navigational buttons are disabled.

CAUSE
There are fields in the resulting query that have the single-letter name of C and/or D. These field names match the variables being used for the Next and >| buttons on the Graph Wizard screen. Also, having fields named A and/or B causes the |<< and Back buttons to be disabled.

Because the record pointer on the cursor file is moved to the end of file during the processing of the Graph Wizard, the buttons using those variables become disabled.

WORKAROUND
To enable the navigational buttons on the Graph Wizard, don't use field names of A, B, C, or D in your output file.

STATUS
This behavior is by design.

Steps to Reproduce Behavior
1. Type the following commands in the Command window:

CREATE TABLE testgrph (fld1 C(10), fld2 N(10)) INSERT INTO testgrph VALUES ("record 1", 1) INSERT INTO testgrph VALUES ("record 2", 2)

SELECT fld1, SUM(fld2) AS C FROM testgrph ; INTO CURSOR query DO (_gengraph)

Note that the Next button is disabled. 2. Issue the following command in the Command window: SELECT fld1, SUM(fld2) AS D FROM testgrph ; INTO CURSOR query DO (_gengraph)

Note that the >>| button is disabled. 3. Issue the following command in the Command window: SELECT fld1, SUM(fld2) AS sum2 FROM testgrph ; INTO CURSOR query DO (_gengraph)

Note that both the Next and >>| buttons are enabled. Additional reference words: FoxWin 2.60a KBCategory: kbtool kbprb KBSubcategory: FxtoolRqbe Keywords         : FxtoolRqbe Version          : 2.60a Platform         : WINDOWS
 * }