Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when calling activex method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00741265
Message ID:
00741268
Vues:
21
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform