Hi everyone,
I'm using Erel's excellent SerialExample code. I'm trying read incoming bluetooth data which has a format of "Data receive:125" where the numeric value after "Data receive:" increments and start from 0-255. I'm trying to separate the numeric part and display on EditText1 using the following code.:sign0104:
But I'm getting error, please see attached file.
Thanks in advance,
microbox
I'm using Erel's excellent SerialExample code. I'm trying read incoming bluetooth data which has a format of "Data receive:125" where the numeric value after "Data receive:" increments and start from 0-255. I'm trying to separate the numeric part and display on EditText1 using the following code.:sign0104:
B4X:
Sub Button1_Click
Indx1 =txtLog.Text.IndexOf ("Data receive:") ' Indx1 as global variable
EditText1.Text =txtLog.Text.SubString2(Indx1,5)
End Sub
Thanks in advance,
microbox