Page 1 of 1

AddXY from Foxpro with a Datetime value for X

Posted: Wed Jan 28, 2009 8:29 pm
by 15046204
I have a line graph where the x axis is date time. My data is in a Foxpro cursor and I want to be able to pass a date time value as the X value. How can I convert the value to a value to pass to the AddXY method?

I am looping through the cursor and passing the values rather than using a recordset.



thanks


pete

Posted: Mon Feb 02, 2009 2:27 pm
by narcis
Hi pete,

You should add DateTime values to series as doubles and then set TChart1.Series(0).XValues.DateTime=True.