Article ID: 135348
Article Last Modified on 7/13/2004
DO (_GENGRAPH) WITH "MYDATA"This will start the Graph Wizard, so you can create the initial graph for the form. Add the three numeric fields to the Data Series list box and the character field to the Axis field of the wizard. Click the Next button, and follow the instructions provided by the wizard. Save the graph as Mygraph.dbf when prompted. In Visual FoxPro 6.0, by default a graph is saved to a form. In step 4 of the wizard, choose the option button that that says "Save graph to a table."
SELECT * FROM MYDATA INTO CURSOR MYCURSOR
TAB = CHR(09)
CRLF = CHR(13) + CHR(10)
SELECT MYCURSOR
NEWDATA = TAB + "Label A" + TAB + " Label B " + TAB ;
+ " Label C " + CRLF
SCAN
NEWDATA = NEWDATA + MYSERIES + TAB + STR(MYDATA1) + TAB ;
+ STR(MYDATA2) + TAB + STR(MYDATA3) + CRLF
ENDSCAN
SELECT MYGRAPH
APPEND GENERAL Mygraph.Olegraph DATA NEWDATA
THISFORM.REFRESH
129533 How To Pass Data to Microsoft Graph Programatically
131029 How To Manipulate Embedded Objects in General Field
Additional query words: graphing executable
Keywords: kbcode KB135348