Sub gotoread
Dim List1 As List
List1.Initialize
Dim DataStart, DataEnd, EndIndex As Int
EndIndex = BluetoothData.LastIndexOf(":") 'end marker
DataStart = BluetoothData.IndexOf(":")
DataEnd = BluetoothData.IndexOf2("Data",DataStart)
Do While DataStart <> -1
'Msgbox(BluetoothData.SubString2(DataStart + 1,DataEnd),"Data Value")
numer1=BluetoothData.SubString2(DataStart + 1,DataEnd)
List1.Add(BluetoothData.SubString2(DataStart + 1,DataEnd))
DataStart = BluetoothData.IndexOf2(":",DataEnd)
If DataStart <> EndIndex Then
DataEnd = BluetoothData.IndexOf2("Data",DataStart)
Else
DataEnd = BluetoothData.Length
End If
Loop
EditText1.Text = List1.Get(0)
EditText2.Text = List1.Get(1)
EditText3.Text = List1.Get(2)
EditText4.Text = List1.Get(3)
End Sub