Please help compiling
Posted: Mon Mar 18, 2019 10:04 am
Hi,
I'm trying to convert our application from Vulcan to X#. There are many many compiler errors, some are real errors, the most not, but I can go around them.
But this time I need help.
I get error XS1503 Argument 1: cannot convert from 'int' to 'string' accessing an element of a collection (oChartAreaCollection[0])
Please help me. Thank you.
Thomas
//--------------------------------------------------------------
Method CantCompile() As Void
Local oChart As System.Windows.Forms.DataVisualization.Charting.Chart
Local oChartAreaCollection As System.Windows.Forms.DataVisualization.Charting.ChartAreaCollection
Local oChartArea As System.Windows.Forms.DataVisualization.Charting.ChartArea
oChart := System.Windows.Forms.DataVisualization.Charting.Chart{}
// oChart:ChartAreas[0]:Area3DStyle:Rotation
oChartAreaCollection := oChart:ChartAreas
oChartArea := oChartAreaCollection[0]
Return
I'm trying to convert our application from Vulcan to X#. There are many many compiler errors, some are real errors, the most not, but I can go around them.
But this time I need help.
I get error XS1503 Argument 1: cannot convert from 'int' to 'string' accessing an element of a collection (oChartAreaCollection[0])
Please help me. Thank you.
Thomas
//--------------------------------------------------------------
Method CantCompile() As Void
Local oChart As System.Windows.Forms.DataVisualization.Charting.Chart
Local oChartAreaCollection As System.Windows.Forms.DataVisualization.Charting.ChartAreaCollection
Local oChartArea As System.Windows.Forms.DataVisualization.Charting.ChartArea
oChart := System.Windows.Forms.DataVisualization.Charting.Chart{}
// oChart:ChartAreas[0]:Area3DStyle:Rotation
oChartAreaCollection := oChart:ChartAreas
oChartArea := oChartAreaCollection[0]
Return