How do I know the data source of a series.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SDG
Newbie
Newbie
Posts: 40
Joined: Tue Apr 08, 2003 4:00 am

How do I know the data source of a series.

Post by SDG » Fri Jan 02, 2004 4:54 am

Yesterday I have posted a question for this.
I found that the property Xvalue.Valuesource and Yvalue.Value source gives the datasource. but this property works only when the values are assigned at designtime.
How do I know the valuesource if the Dataset is assigned in the runtime?

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Re: How do I know the data source of a series.

Post by Marjan » Fri Jan 02, 2004 11:21 am

8440512 wrote:Yesterday I have posted a question for this.
I found that the property Xvalue.Valuesource and Yvalue.Value source gives the datasource. but this property works only when the values are assigned at designtime.
How do I know the valuesource if the Dataset is assigned in the runtime?
It doesn't matter if it's set at design or at runtime. I guess one way to determine is series datasource is dataset is to use the following code:

Code: Select all

  if Series1.DataSource is TDataSet then ShowMessage('Dataset descendant');
Marjan Slatinek,
http://www.steema.com

Post Reply