Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters
Message
From
15/05/2001 17:39:16
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00507553
Message ID:
00507578
Views:
10
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform