hi,
Now I need your help. I have the following code:
N2 and N3, are string format 0191 and 2345 ... so four-digit number.
Expecting string composed in the form as: 01912345
What is wrong in this code? It is always compose strings worked without problems.
It is a console application.
Now I need your help. I have the following code:
B4X:
Sub AStream2_NewData (Buffer2() As Byte)
Dim s2 As String = BytesToString(Buffer2, 0, Buffer2.Length, "UTF8")
If s2.Length > 5 Then n2 = st.Right(s2,5)
Log ("L2:" & n2)
End Sub
Sub AStream3_NewData (Buffer3() As Byte)
Dim s3 As String = BytesToString(Buffer3, 0, Buffer3.Length, "UTF8")
If s3.Length > 5 Then n3 = st.Right(s3,5)
Log ("L3:" & n3)
End Sub
Sub TC1_Tick
Dim niv As String
niv = n2 & n3
Log (niv)
niv = ""
End Sub
N2 and N3, are string format 0191 and 2345 ... so four-digit number.
Expecting string composed in the form as: 01912345
What is wrong in this code? It is always compose strings worked without problems.
It is a console application.