I used case statement with byte array;
why dont work it?
why dont work it?
B4X:
Log(bc.SubString2(Data,2,5))'>>> return >>>C01
Select bc.SubString2(Data,2,5)
Case "C01".GetBytes
Log("C01") ' dont work this line
Case "C02".GetBytes
Log("C02")
Case "C03".GetBytes
Log("C03")
Case "C04".GetBytes
Log("C04")
Case "C05".GetBytes
Log("C05")
Case Else
Log("Else") '>>>> works this line
End Select