by thetranslator » Sat Nov 07, 2009 10:53 am
Hello. I'm trying to write a program in vb6 and I have some questions.
First of all does it need the excel to be open when I use ba com object on vb6?
Then I can do eveything with vb6, but to display the selections and prices of a market. Here is my code.
Set ba = New BettingAssistantCom.ComClass
sports = ba.getSports()
For Each sport In sports
If sport.sport = "Soccer - Fixtures" Then
events = ba.getEvents(sport.sportId)
For Each evnt In events
'diff = DateDiff("s", Now(), evnt.startTime)
'If diff >= 0 Then
' result = ba.openMarket(evnt.eventId, evnt.exchangeId)
If InStr(evnt.eventname, "07 November") Then
games = ba.getEvents(evnt.eventId)
For Each gm In games
mkts = ba.getEvents(gm.eventId)
For Each mkt In mkts
List1.AddItem mkt.eventname
Next
Next
End If
Next
End If
Next
ba.refreshRate = 1
So how to get the prices for the market? Any help would be appreciated.
Thanks
She The Translator
... and much much more ...