petr4ppc Well-Known Member Licensed User Longtime User May 22, 2014 #1 Dear friends, please, it is possible to recognize CRLF (chr(13)) in the STRING? I receive some bytes using ASTREAM I recognize each byte with BytesToString(Buffer,numberofbyte,1,"UTF8") I think, that I have in string two CRLF characters....I think, that CRLF have 2 bytes because I receive 4 bytes more then I am sending. Please it is possible to detect CRLF in the string? Thank you very much p4ppc
Dear friends, please, it is possible to recognize CRLF (chr(13)) in the STRING? I receive some bytes using ASTREAM I recognize each byte with BytesToString(Buffer,numberofbyte,1,"UTF8") I think, that I have in string two CRLF characters....I think, that CRLF have 2 bytes because I receive 4 bytes more then I am sending. Please it is possible to detect CRLF in the string? Thank you very much p4ppc
DonManfred Expert Licensed User Longtime User May 23, 2014 #2 B4X: if str.Contains(chr(13)&chr(10)) then end if ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 23, 2014 #3 Check AsyncStreamsText. It will break the stream to messages based on CR / LF (either or both). Upvote 0