Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variant and SafeArray
Message
De
30/09/2011 09:32:42
 
 
À
30/09/2011 09:23:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01525234
Message ID:
01525251
Vues:
48
>>>So it would appear they are passing arrays to the Retrieve() function. When try it I still get type mismatch.
>>
>>So just build a VB wrapper and shelve the problem for now...
>
>lol! and how would this humble coder do that? :)

Build a VB class with eposing properties for each parameter.
Give it an execute function copying all the properties into VB variables,
make the working call, copy all the interesting Ref vars back into properites.

Instantiate this VB COM object in vfp,
set the properties,
call the method,
read out any interesting data....

Most of the time fast enough if not called in tight loops,
even if bloody chatty across COM barriers, but you can work on and
try a faster solution when it becomes necessary.


regards

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform