Using SHOWGRPH in GENGRAPH.APP

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

SUMMARY

The GraphWizard is a FoxPro for Windows application named GENGRAPH.APP. The SHOWGRPH procedure, which can be called from GENGRAPH.APP, allows a graph saved by GraphWizard to be displayed.

SHOWGRPH uses the MODIFY GENERAL command to display the specified graph. SHOWGRPH does not update the data stored in the graph. However, a user can double-click the MODIFY GENERAL window to modify the graph.

A developer might create a set of graphs by using the GraphWizard, store them in a database, then redisplay them at a later time with the SHOWGRPH procedure.

MORE INFORMATION

The correct syntax for calling SHOWGRPH is:

   DO SHOWGRPH IN GENGRAPH.APP WITH <expC1>, <expN>[, <expC2>]

The clauses that are used with the SHOWGRPH procedure are <expC1>, <expN>, and <expC2>, which is optional.
  • <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.
  • <expC2> is the title to use for the window containing the graph displayed. If the title is not specified, the default title of "GRPHDBF.OLEGRAPH" is used.

For example:

   DO SHOWGRPH IN GENGRAPH.APP WITH ;
      "c:\foxprow\qrygraph.dbf",4,"My Window"

This example displays the graph stored in record 4 of QRYGRAPH.DBF with a window title of "My Window." It does not matter which DBF/cursor is open in the current work area when the SHOWGRPH procedure is invoked.


Additional reference words: FoxWin 2.50 2.50a msgraph
KBCategory: kbprg 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.