Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when calling activex method
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00741265
Message ID:
00741268
Views:
19
>I need to send an array of variants to an olecontrol and
>am getting an error. I do it this way but am getting an
>error. What could it be? TIA, Alex
>
* Thisform.oSheet contains oleobject, Thisform.aSheet contains an array
* Intellisense for GetArray indicates:
*    GetArray(ColLeft AS Number,RowTop AS Number, VarArray AS Variant) AS Logical
DIMENSION Thisform.aSheet[15,15]
ACOPY(Thisform.aSheet,laSheet)
llStatus = Thisform.oSheet.GetArray(1,1,@laSheet)
Alejandro, last time I needed to do something like this, I ended up writing code in VB to call the object, and then calling the VB DLL from VFP. I couldn't find any way to explain to the object what kind of array VFP was passing it.

Is there any way you can get that array returned to VFP, modify it, and pass it back into the function call?
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform