PRB: Graph Wizard Buttons Are Disabled

Last reviewed: April 30, 1996
Article ID: Q129313
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.

MORE INFORMATION

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.