Page 1 of 1

How do I know the data source of a series.

Posted: Fri Jan 02, 2004 4:54 am
by 8440512
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?

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

Posted: Fri Jan 02, 2004 11:21 am
by Marjan
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');