AddXY from Foxpro with a Datetime value for X

TeeChart for ActiveX, COM and ASP
Post Reply
pjhrath
Newbie
Newbie
Posts: 1
Joined: Tue Jul 24, 2007 12:00 am

AddXY from Foxpro with a Datetime value for X

Post by pjhrath » Wed Jan 28, 2009 8:29 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 02, 2009 2:27 pm

Hi pete,

You should add DateTime values to series as doubles and then set TChart1.Series(0).XValues.DateTime=True.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply