Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass an array to a property
Message
From
01/07/2002 02:26:00
 
 
To
28/06/2002 06:22:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00672833
Message ID:
00673767
Views:
25
Thanks for your reply,
I hope someone can help me and tell me if there's a trick for this, It would make my code (MsChart-wrapper) a lot cleaner.

>Ah, I'm sorry as well then as I am pretty sure that this can not be done.
>
>The array format on the MSChart object is not the same as the VFP array. Someone out there might know of a trick to achieve this... creating a string of values like we do for structures, but, as far as I am aware, it is not possible to pass a native VFP array.
>
>Luck
>
>Mace
>
>>Sorry that's not what I meant.
>>I would like to pass an array to the property chartData of the Mschart-object.
>>thisform.oChart.Chartdata=Myarray
>>>Hi Jimmy
>>>
>>>The way I do this is to declare the array as part of the definition and then copy it across.
>>>
>>>For example:
>>>
>>>LOCAL loObject AS oleChart
>>>LOCAL loForm AS Form
>>>LOCAL laMyArray[5]
>>>
>>>loForm = CREATEOBJECT( "FORM")
>>>loForm.NewObject( "oleChart", "oleChart")
>>>loObject = loForm.oleChart
>>>
>>>ACOPY( laMyArray, loObject.iaArray)
>>>
>>>DEFINE CLASS oleChart AS OLEControl
>>> DECLARE iaArray[1]
>>> OLEClass = "MSChart20Lib.MSChart.2"
>>>ENDDEFINE
>>>
>>>
>>>>How can I pass an array to an property (member of an activeX-control like MSCHart) ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform