Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning arrays from COM
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Returning arrays from COM
Divers
Thread ID:
00614187
Message ID:
00614187
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform