Graphing in VFP? Help? Example in post...

Tech-Archive recommends: Fix windows errors by optimizing your registry



Ok, I've visited this
page:http://support.microsoft.com/default.aspx?scid=kb;EN-US;129533

And see this code:
#DEFINE cr CHR(13)
#DEFINE tab CHR(9)

USE datafile IN 1
USE grphfile IN 2
SELECT datafile
cGraphString = ""

* Build tab-delimited string of field names:
FOR iCounter = 1 TO 5
cGraphString = cGraphString + FIELDS(iCounter) ;
+ IIF(iCounter < 5,tab,cr)
ENDFOR

* Concatenate the data, converting numeric fields to character:
SCAN
FOR iCounter = 1 TO 5
cGraphString = cGraphString + IIF(TYPE(Fields(iCounter))='C',;
EVALUATE(FIELDS(iCounter)) ;
,str(EVALUATE(FIELDS(iCounter)),16,2);
);
+ IIF(iCounter < 5,tab,cr)
ENDFOR
ENDSCAN

SELECT grphfile
APPEND GENERAL mgraph DATA cGraphString
-----------------------------------------------------------------

I tried to set up both datafile and grphfile, and then run the program. I
get nothing in the GENERAL field that is in grphfile. Just a lowercase
"gen". In datafile, I have five fields, first is a character field with
values in, the next four are integer fields, with values there as well.
There are five records total in the table.

What am I doing wrong? What should I see in the GENERAL field, the actual
graph? A data string that will be used in some way to actually display the
graph? Really confused on this. Right now, I'm using FP to generate a text
file, that then is used by Excel to actually create the graphs I need. I'd
really like to be able to generate them completely in VFP.

Thanks!
Shawn


.