Android Question Use Astream_NewData

wolfray1972

Member
Licensed User
Hi all,

I use a barcode scanner, and use:

B4X:
Sresult = BytesToString(Buffer, 0, Buffer.Length, "UTF8")

This gives me a Chr(13) at the end of my scan result. How to remove??

I tried replace(chr(13),""), but to no avail.

Any one has an idea?
 

wolfray1972

Member
Licensed User
Wow that was fast. Could you explain:
Buffer(Buffer.Length - 1) = 13 Then len = len - 1

It works but i would like to know why and what is it doing?

Thank you in advance.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top