Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array as parameter
Message
De
19/11/2007 12:38:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/11/2007 09:17:56
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01269881
Message ID:
01269946
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform