Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters
Message
De
15/05/2001 17:39:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00507553
Message ID:
00507578
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>Does anyone know how to pass an array of strings to a com object, we can't seem to get it to work by value or reference. Thanks for any help!
>John

You may need to call COMARRAY() to tell VFP how to pass arrays to the COM server.
This is especially true if the COM server is written in something other than VFP (like VB)

e.g. assuming array already exists...

ox=CREATEOBJECT("myCom.Class")
COMARRAY(ox,10) && accept 0-based array by reference
ox.DoSomething(@laArray)
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform