Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variant and SafeArray
Message
De
30/09/2011 09:23:59
 
 
À
30/09/2011 09:12:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01525234
Message ID:
01525248
Vues:
43
>>Hi
>>
>>I have been given this VB6 code as an example:
>>
>>
>>Dim AB As Object
>>Dim qt As Object
>>Dim aDate, aOpen, aHigh, aLow, aClose, aVolume, aOpenInt As Variant
>>
>>Set AB = CreateObject("Broker.Application")
>>Set QT = AB.Stocks(Symbol.Text).Quotations
>>
>>NumQuotes = QT.Retrieve(-1, aDate, aOpen, aHigh, aLow, aClose, aVolume, aOpenInt)
>>
>>List1.Clear
>>
>>For i = 0 To NumQuotes - 1
>> List1.AddItem (aDate(i) & "," & aOpen(i) & "," & aHigh(i) & "," & aLow(i) & "," & aClose(i) & "," & aVolume(i))
>>Next
>>
>>
>>
>>So it would appear they are passing arrays to the Retrieve() function. When try it I still get type mismatch.
>
>So just build a VB wrapper and shelve the problem for now...

lol! and how would this humble coder do that? :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform