One last attempt. I apologize for second post in advance, not trying to
inflame I'm simply not up to speed on objects and arrays. Since this should
be easy I'm looking for a quick solution here before attempting an
outsource. If you feel this post is beyhond the intentions of this group
simply don't reply, I'm not here to offend anyone but would like to save a
buck if I can! Here's the specification and yes, there is a reason I need
to do it this way.
Overview:
VFP function that creates and exports line chart to "gif" format using
OWC10.dll in background using bare minimum VFP 6.0 code.
Parameters passed:
cDestFile: target GIF destination file name.
cDataSource: Comma delimited source file name. Will always have two fields
1.) Data Labels and 2.) Values
cTitle: Chart title label
cLineColor: Series line color
cBackColor: Chart background color
lShowLegend: Logical value determines whether to show legend
nLabelAlign: Label orientation (0 horizontal, 90 vertical, etc.)
Parameters returned (numeric):
0=Failure
1=Success
Sample VFP6 code to call this function (MakeChart):
&& Set parameters
cDestFile="c:\Graph.gif"
cDataSource= "c:\source.txt"
cTitle="My Chart"
cLineColor="Red"
cBackColor="Black"
lShowLegend=.f.
nLabelAlign=90
&& Call function
MakeChart(cDestFile,cDataSource,cTitle,cLineColor,cBackColor,lShowLegend,nLa
belAlign)
Sample Data Set (c:\source.txt):
"Label","Value"
"John","36"
"Jane","25"
"Fred","52"
"Mike","65"
"Otis","47"
TYIA
- Ben