Data source

TeeChart for ActiveX, COM and ASP
Post Reply
deha
Newbie
Newbie
Posts: 3
Joined: Thu Nov 09, 2006 12:00 am

Data source

Post by deha » Fri Jan 30, 2009 1:08 pm

Is there a possibility to share the data in my internal data structures with a Series, so that my program internal data and the Series data are consistent? I see it is possible with a database or a file, but I want to use only memory.

Does Series copy the data or access it by reference?

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:28 pm

Hi deha,

To achieve that you should define an event for your recordset being updated and call series' CheckDataSource method there.
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

deha
Newbie
Newbie
Posts: 3
Joined: Thu Nov 09, 2006 12:00 am

Post by deha » Tue Feb 03, 2009 9:29 am

Hi Narcís, thanks for your answer.
How do I tell a Series where the data is found? Like CheckDataSource says, it check the data source. As written in documentation DataSource may be a database or an other Series. But I want to use my memory data structure. Any ideas?

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

Post by Narcís » Tue Feb 03, 2009 10:10 am

Hi deha,

In that case you should manually iterate through your data structure and populate TeeChart series using Add/AddXY methods. Assigning a database datasource does the same internally.
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

deha
Newbie
Newbie
Posts: 3
Joined: Thu Nov 09, 2006 12:00 am

Post by deha » Tue Feb 03, 2009 10:16 am

Hi Narcís,

thank you for your help. Now I know how to handle it.

Best regards
deha

Post Reply