Passing Date to a FoxGraph Graph as a SubtitleLast reviewed: April 17, 1995Article ID: Q99605 |
The information in this article applies to:
SUMMARYThe system date can be passed as a parameter to GENGRAPH.FXP so that the current date will be displayed as the subtitle on a FoxGraph graph.
MORE INFORMATIONGENGRAPH.FXP is a program called by the RQBE tool when a query is output to a graph. It has two optional parameters: Subtitle and Column Title. The syntax for calling GENGRAPH with these parameters is:
DO (_GENGRAPH) WITH <subtitle>, <column title>The RQBE window does not have any options for specifying these parameters, so a statement similar to the following will be produced when outputting a query to a graph:
SELECT test.age, test.num; FROM test; INTO CURSOR query DO (_GENGRAPH)To modify the commands generated by the RQBE tool, choose the See SQL button, select (highlight) the commands in the window, and choose Copy from the Edit menu. These commands can then be pasted into a program file and modified to look like the following:
SELECT test.age, test.num; FROM test; INTO CURSOR query DO (_GENGRAPH) WITH DTOC(DATE())NOTE: In FoxPro version 2.0 for MS-DOS, the DO command produced by the RQBE tool is:
DO c:\foxpro2\gengraph.fxpwhich can be pasted into a program and modified to read:
DO c:\foxpro2\gengraph.fxp WITH DTOC(DATE())FoxGraph is supported by Three D Graphics at (310) 459-7949.
REFERENCES"Using FoxPro Version 2", Slater & Arnott, page 231, Que, 1992
|
Additional reference words: FoxDos 2.00 2.50 2.50a today's relational query
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |