No ParentChart to validate datasource

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
provis
Newbie
Newbie
Posts: 6
Joined: Mon Oct 01, 2001 4:00 am
Location: France

No ParentChart to validate datasource

Post by provis » Tue Apr 20, 2004 9:32 am

Following code worked ok in BorlandC++ with TeeChartPro5
FCorrSeries = new TLineSeries(Chart);
FCorrSeries->DataSources->Clear();
FCorrSeries->DataSources->Add(FChartSeries);

In TeeChartPro7, we have error:
No ParentChart to validate datasource
Any idea ?

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 20, 2004 4:49 pm

Hi,

yes, in older version it does not give you any error message but it does not do nothing. Creating the Series in this manner you must always set the ParentChart property.

Post Reply