marketId
Hi Mumbles,
First of all thanks for an excellent tutorial in programming for the Betfair API. I got to tell you i have no programming experience yet i was able through your instructions create a very usable bot and i've increased my programming ability no end.
There is one thing in my programming which i haven't been able to do myself yet. If this is a simple step then i apologise, but if it's more involved i would appreciate a few pointers.
What i do is after login to the api i use the get Todays Card call to pull a list of the Greyhound or Horse market into a listbox. Currently i have to pick a market then write down the marketId and type it in manually. What i want to do is to double click on a markket in the list, extract the marketId into a temporary container and the input it into the .marketId line automaticaly rather than manually. See below.
Private Sub lbMarkets_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbMarkets.DoubleClick
Beep()
'Print("*** Complete Market Prices ****")
Dim oCMPCreq As New BFUK.GetCompleteMarketPricesCompressedReq
Dim marketId As Integer = Val(TempMarketId)
With oCMPCreq
Print(.marketId)
.header = oHeaderUK()
.marketId = TempMarketId
'.marketId = 100814234 'an active market ID
End With
StateCount += 1
BetFairUK.getCompleteMarketPricesCompressedAsync(o CMPCreq, StateCount) 'Call the AP
End Sub
I'm sure this is simple and it's only my programming knowledge that's making seem impossible. Any pointers would be appreciated.
Thanks
Tony
Hi Mumbles,
First of all thanks for an excellent tutorial in programming for the Betfair API. I got to tell you i have no programming experience yet i was able through your instructions create a very usable bot and i've increased my programming ability no end.
There is one thing in my programming which i haven't been able to do myself yet. If this is a simple step then i apologise, but if it's more involved i would appreciate a few pointers.
What i do is after login to the api i use the get Todays Card call to pull a list of the Greyhound or Horse market into a listbox. Currently i have to pick a market then write down the marketId and type it in manually. What i want to do is to double click on a markket in the list, extract the marketId into a temporary container and the input it into the .marketId line automaticaly rather than manually. See below.
Private Sub lbMarkets_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbMarkets.DoubleClick
Beep()
'Print("*** Complete Market Prices ****")
Dim oCMPCreq As New BFUK.GetCompleteMarketPricesCompressedReq
Dim marketId As Integer = Val(TempMarketId)
With oCMPCreq
Print(.marketId)
.header = oHeaderUK()
.marketId = TempMarketId
'.marketId = 100814234 'an active market ID
End With
StateCount += 1
BetFairUK.getCompleteMarketPricesCompressedAsync(o CMPCreq, StateCount) 'Call the AP
End Sub
I'm sure this is simple and it's only my programming knowledge that's making seem impossible. Any pointers would be appreciated.
Thanks
Tony


. If I check for a valid reply (= OK, or/& record count > 0), and then try to do something like:

Comment