Using REFRESHGRPH in GENGRAPH.APP

Last reviewed: April 29, 1996
Article ID: Q98770
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. The REFRESHGRPH procedure, which can be called from GENGRAPH.APP, allows data in a graph saved by Microsoft FoxPro GraphWizard to be changed.

Calling the REFRESHGRPH procedure might be useful if you are experimenting with a series of graphs using data drawn from a single query, but with different filtering conditions. Rather than creating the graph each time in the GraphWizard, you could create it once, save it, then direct future query output to a table or cursor. You can then use the REFRESHGRPH procedure to update and display the saved graph.

MORE INFORMATION

The correct syntax for calling REFRESHGRPH is:

   DO REFRESHGRPH IN GENGRAPH.APP WITH <expC>, <expN>

The clauses used with the REFRESHGRPH procedure are <expC1> and <expN>:
  • <expC1> is the name of the table containing the previously saved graph. The GraphWizard names this table QRYGRAPH.DBF, by default.
  • <expN> is the record number containing the graph to be displayed.

The following code updates a previously saved graph using the DBF/cursor in the current work area, and displays the updated graph. The data set that was originally stored in the graph is replaced by the data set found in the currently selected DBF/cursor.

REFRESHGRPH assumes that the currently selected DBF/cursor has the same structure (for example, the same field names) as the table used to create the graph originally. REFRESHGRPH essentially does no error checking. REFRESHGRPH uses the MODIFY GENERAL command to display the graph specified. The name of the graph (specified when the graph was first created) will be used as the window title. For example:

   DO REFRESHGRPH IN GENGRAPH.APP WITH "c:\foxprow\qrygraph.dbf",4

This command updates record 4 in QRYGRAPH.DBF with the data found in the currently selected DBF/cursor.


Additional reference words: FoxWin 2.50 2.50a msgraph
KBCategory: kbtool kbcode
KBSubcategory: FxtoolGeneral


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.