Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays from COM Objects
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00761895
Message ID:
00761912
Views:
20
>Ok folks. What is the best way to deal with arrays from COM objects that I need to pass on to other COM objects? I can see the array property in the first object, and it shows as an array of type Z, but I can't reference it in code. I am currently planning on writing a small OCX in VB to handle the objects. But is there an easier faster way to do this? Please, of you know of any other answer, this is pretty time critical.

Cy -- can you just copy it to a local (VFP) array and reference it?

Something like this:

laMyArray = object.ArrayProp
* now, do whatever you need to do to laMyArray

The only problem is if you need to put it back "into" the property... you can't do this: object.ArrayProp = laMyArray ... there are some alternatives (such as a small VB com wrapper to accept the array as a parameter and then set it to the property), but I'll hold off on more details until you say that you actually need to do this...
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform