Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variant and SafeArray
Message
From
30/09/2011 09:32:42
 
 
To
30/09/2011 09:23:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01525234
Message ID:
01525251
Views:
49
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform