Using GENGRAPH.APP to Update and Display Graphs

Last reviewed: April 29, 1996
Article ID: Q98771
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a

SUMMARY

The GraphWizard is a FoxPro for Windows application named GENGRAPH.APP. Its principal design goal was to allow users to format and display graphs interactively, using data generated by the RQBE tool. The GraphWizard's Save push button can be used to save a graph in a specially formatted table, named QRYGRAPH.DBF by default.

MORE INFORMATION

The structure of a table used to save a GraphWizard graph is:

   Field     Field name     Type          Width
   --------------------------------------------

     1       GRAPHNAME      Character      30
     2       GRAPHID        Numeric         2
     3       GRAPHTITLE     Character      80
     4       XAXIS          Character      12
     5       FLIST          Memo           10
     6       OLEGRAPH       General        10

A graph created and saved with the GraphWizard can be displayed by using the standard methods for modifying GENERAL fields. A graph can be printed either using a general field in the Report Writer or by using an @...SAY command in a hard-coded report. Note that multiple graphs can be stored in QRYGRAPH.DBF; each graph is stored in a record in the table.

GENGRAPH.APP contains procedures that can be used display graphs previously created and saved using the GraphWizard. Using these procedures, the data upon which a graph is based can be updated. These procedures do not support changing the appearance of a graph. The appearance of a graph, like the position of the legend or the colors used for different variables, can be changed by calling Microsoft Graph itself, usually by double-clicking the window displaying the graph.

The following procedures can be called from GENGRAPH.APP:

   Procedure     Description
   ---------------------------------------------------------

   REFRESHGRPH   Change data in a graph saved by GraphWizard
   SHOWGRPH      Display a graph saved by GraphWizard
   UPDATEGRPH    Change data in a graph saved by GraphWizard


Additional reference words: FoxWin 2.50 2.50a msgraph
KBCategory: kbtool
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 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.