Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays from COM Objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00761895
Message ID:
00761912
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform