Private Sub DecodeResults(line As String)
Dim FrmLst As List
Dim str1 As String
Dim group As String
Dim x As Int
Dim NoSect As Object
NoSect = "(0)"
' <strong><font color="#0000FF">7-12* </font></strong>
' 11.1L, M.V., 10Fe12, 1519m, 3yo+ Mdn, Mdn 3+, (2), $30000 ($350), Good, K L Bradley, 4, Cd 58.5, (SW), 1:31.63, (36.97), 20/1, S 7, 12 -, 8 8, T 4, 1-Accrual 58.0<br>
'group = "11.1L, M.V., 10Fe12, 1519m, 3yo+ Mdn, Mdn 3+, (2), $30000 ($350), Good, K L Bradley, 4, Cd 58.5, (SW), 1:31.63, (36.97), 20/1, S 7, 12 -, 8 8, T 4, 1-Accrual 58.0"
' Missing 'SECT'...
group = "11.1L, M.V., 10Fe12, 1519m, 3yo+ Mdn, Mdn 3+, (2), $30000 ($350), Good, K L Bradley, 4, Cd 58.5, (SW), 1:31.63, 20/1, S 7, 12 -, 8 8, T 4, 1-Accrual 58.0"
FrmLst = Regex.Split(",", group)
Log("FrmLst " & FrmLst.Size) ' usually 21 items
' somtimes 'SECT' is missing from Country tracks
If FrmLst.Size < 21 Then
' possibly 14 Is Not a Sect but Tote Odds
str1 = FrmLst.Get(14)
Log("NO SECT " & str1)
' if it has odds it will be like: ' 4/1'
' check for '/'
x = str1.IndexOf("/")
If x > -1 Then
' we have odds in 14
' insrt a default 'Sect' Value - "(0)"
' ERROR - InsertAt --------------------------------------------------------------
' FrmLst.InsertAt(14,"(0)")
' FrmLst.InsertAt(14, NoSect)
' FrmLst.InsertAt(14, Array As Object(NoSect))
End If
End If
End Sub