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?
How do I know the data source of a series.
Re: How do I know the data source of a series.
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: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?
Code: Select all
if Series1.DataSource is TDataSet then ShowMessage('Dataset descendant');
Marjan Slatinek,
http://www.steema.com
http://www.steema.com