ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  compile error
Posted by Claude Kane on Dec-04-2013 04:39
I added an Chart to an existing program and added in  - using ChartDirector.

I now get several errors
'DataSet' is an ambiguous reference between 'System.Data.DataSet' and 'ChartDirector.DataSet'

Is there an easy workaround?

  Re: compile error
Posted by Peter Kwan on Dec-04-2013 23:05
Hi Claude,

The error means that your code have imported two namespaces, namely "ChartDirector" and "System.Data". Both of the namespaces have a class called "DataSet". In your code, you just specify DataSet, without the namespace. So the compiler cannot know if you are referring to "ChartDirector.DataSet" or "System.Data.DataSet".

To solve the problem, if you are referring to ChartDirector.DataSet, please use ChartDirector.DataSet (instead of just DataSet). if you are referring to System.Data.DataSet, please use System.Data.DataSet (instead of just DataSet).

Hope this can help.

Regards
Peter Kwan