Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array as parameter
Message
From
19/11/2007 12:38:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/11/2007 09:17:56
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01269881
Message ID:
01269946
Views:
13
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform