S Scantech Well-Known Member Licensed User Longtime User Oct 20, 2011 #1 I realize the Editbox in B4A does not treat Carriage Return as newline. Vb.net will. Sub AStreams_NewData (Buffer() As Byte) Dim msg As String buffer = s.GetBytes("UTF8") I populate the Editbox with Buffer. Is there a way around this to detect Carriage Return (Byte = 13) then add CRLF to the Editbox. In VB.net textbox ELM327 v1.4b > In B4A editbox ELM327 v1.4b> Last edited: Oct 20, 2011
I realize the Editbox in B4A does not treat Carriage Return as newline. Vb.net will. Sub AStreams_NewData (Buffer() As Byte) Dim msg As String buffer = s.GetBytes("UTF8") I populate the Editbox with Buffer. Is there a way around this to detect Carriage Return (Byte = 13) then add CRLF to the Editbox. In VB.net textbox ELM327 v1.4b > In B4A editbox ELM327 v1.4b>
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2011 #2 It is actually Android who expects chr(10) as the end of line character. You can replace all occurrences of chr(13) to chr(10): B4X: s = s.Replace(chr(13), chr(10)) Upvote 0
It is actually Android who expects chr(10) as the end of line character. You can replace all occurrences of chr(13) to chr(10): B4X: s = s.Replace(chr(13), chr(10))