FoxPro

FoxPro Developer's Conference '94

Session 125
All You Want To Know About FoxPro and MSGraph*

Ted Roche
Computer Resource


Overview


All You
Want to Know About FoxProTM + MS GraphTM

Syntax:
DO SHOWGRPH IN (_GENGRAPH) ;
WITH <expC1>, <expN1>[, <expC2>]
where:
<expC1> is the name of the graph database
<expN1> is the record number to refresh
<expC2> is an optional window title

Syntax:
@ <row, column> SAY <file> BITMAP | <general field>
[STYLE <expC1>]
[CENTER]
[ISOMETRIC | STRETCH]
[SIZE <expN1>, <expN2>]
[NOWAIT]

Syntax:
MODIFY GENERAL <general field1>[, <general field2> ...]
[NOMODIFY] | [NOEDIT]
[NOWAIT]
[[WINDOW <window name1>]
[IN [WINDOW] <window name2> | IN SCREEN]]

 


Use the Report / Label Picture Tool
SET DEVICE TO PRINT
@ 0,0 SAY olegraph SIZE 10000,10000 ISOMETRIC
Graphs in reports or labels
Updating graphs on the fly


reads data from current work area, recalculates and redisplays graph
UPDATEGRPH function
Mode 0: same as REFRESHGRPH
Mode 1: better control, more work
Mode 2: the most work, the best control
mode 2 works in version 2.5a only!

Syntax:
DO REFRESHGRPH IN (_GENGRAPH) ;
WITH <expC>, <expN>
where:
<expC> is the name of the graph database
<expN> is the record number to refresh

Example:
DO REFRESHGRPH IN (_GENGRAPH) ;
WITH "QRYGRAPH.DBF", 2

UPDATEGRPH

Syntax:
DO UPDATEGRPH IN (_GENGRAPH) ;
WITH <expC1>, <expN1> ;
[, <expN2> [, <expC2> ;
[, <array>, <expC3>]]]
where :
<expn2> is the mode: 0, 1 or 2
<expC2> is a new graph title
<array> is a array listing the fields to graph
<expC3> is the X-axis field name


Store a database of template graphs

Recall a template and populate with new data

 

Distribution Kit comes with Runtime GRAPH.EXE
Setup Wizard asks you to include the runtime GRAPH.EXE in your distribution disks
Setup will not overwrite existing full-featured GRAPH.EXE
With Runtime GRAPH.EXE, you still can:

Use the Graph Wizard
Modify the data in the graph and recalculate it
Display and print the graph using methods above

Limitations of Runtime GRAPH.EXE:
Cannot change graph type
Cannot modify fonts, colors or styles
Access to MSGraph menu interface denied:


Microsoft, FoxPro, MSGraph and other product and company names are trademarks or registered trademarks of their respective companies. Use of the code included herein is completely at your own risk; no liability is assumed by either DFPUG, Computer Resource, nor Microsoft for any damages incurred


All You Wanted to Know about FoxPro & MSGraph
(c)1994 Ted Roche