So you can have the following
- Code: Select all
Dim refs() As String
Dim selecIds(59) As Long
Dim betTypes(59) As String
Dim odds(59) As Double
Dim stake(59) As Double
Dim tokens(59) As String
selecIds(0) = 1
selecIds(1) = 2
selecIds(2) = 3
selecIds(3) = 4
selecIds(4) = 5
selecIds(5) = 6
selecIds(6) = 7
selecIds(7) = 8
selecIds(8) = 9
betTypes(0) = "B"
betTypes(1) = "B"
betTypes(2) = "B"
betTypes(3) = "B"
betTypes(4) = "B"
betTypes(5) = "B"
betTypes(6) = "B"
betTypes(7) = "B"
betTypes(8) = "B"
odds(0) = 100
odds(1) = 200
odds(2) = 300
odds(3) = 400
odds(4) = 500
odds(5) = 600
odds(6) = 700
odds(7) = 800
odds(8) = 900
stake(0) = 0.2
stake(1) = 0.2
stake(2) = 0.2
stake(3) = 0.2
stake(4) = 0.2
stake(5) = 0.2
stake(6) = 0.2
stake(7) = 0.2
stake(8) = 0.2
I want (0) to be first, (1) to be second etc. A lot of the time it works, but sometimes it doesn't and I can't figure out why. I use the bet reference given by Betfair to determine which one was submitted first.
Any idea?
Thanks