>Hello Everbody
>
>I'm experimenting with the RMChart.ocx to generate some charts.
>(works great with a lot of possibilities + is freeware)
>The documentation uses Visual Basic examples.
>I found that there are two ways to pass data to a chart.
>
>This one works:
>RMChartX1.Region(1).AddBarSeries
>WITH thisform.RMChartX1.Region(1).BarSeries(1)
> .
> .
> .
> .DataString = "110*150*4*10*12*88"
>ENDWITH
>**************
>The second way is:
>Property DataArray: pass the whole data as an one-dimensional array of doubles.
>
>RMChartX1.Region(1).AddBarSeries
>WITH thisform.RMChartX1.Region(1).BarSeries(1)
> .
> .
> .
> .RMChartX1.Region(1).BarSeries(1).DataArray = aData() && = vb example
>ENDWITH
>
>So i created an array
>DIMENSION mydata(6) AS double
>store 110 to mydata(1)
>store 150 to mydata(2)
>store 4 to mydata(3)
>store 10 to mydata(4)
>store 12 to mydata(5)
>store 88 to mydata(6)
>
>and tried
>.RMChartX1.Region(1).BarSeries(1).DataArray = mydata
>error: typeconflict
>
>.RMChartX1.Region(1).BarSeries(1).DataArray = mydata()
>error: invalid array access
>
>What do i miss ?
>Every help welcomed.
>
>Best regards
>Albert
.RMChartX1.Region(1).BarSeries(1).DataArray = getArrayRef('aData')
function getArrayRef(tcArrayName)
return @&tcArrayName
Cetin