Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning arrays from COM
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Returning arrays from COM
Miscellaneous
Thread ID:
00614187
Message ID:
00614187
Views:
63
I'm having trouble getting array data from an object. I have a feeling it relates to my array declaration or the initial values.

The error I'm getting is Type Mismatch.

The function I'm calling is:
Sub GetPrices(WordenNum As Long, OpenPrices() As Single, HighPrices() As Single, LowPrices() As Single, ClosePrices() As Single, Volumes() As Long, Dates() As Long, NumberOfPricesToGet As Long)

After defining each array like this:
LOCAL ARRAY Volumes[5]
STORE "X" TO Volumes

And then calling like this:
mbhtemp1=otc.GetPrices(9996, @OpenPrices, @HighPrices, @LowPrices, @ClosePrices, @Volumes, @Dates, lcNoOfPrices)

I have tried using COMARRAY() with different values, but same result.

Any hints?
TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform