trepdas Active Member Licensed User Longtime User Jan 25, 2021 #1 Hello good people, I have a long string with crlf already inside the string (string1&CRLF&string2&CRLF&string3 etc) how would I split it into an array ? in vb6 - buffer()=split(bigstring,crlf) how in B4x ? many thanks
Hello good people, I have a long string with crlf already inside the string (string1&CRLF&string2&CRLF&string3 etc) how would I split it into an array ? in vb6 - buffer()=split(bigstring,crlf) how in B4x ? many thanks
LucaMs Expert Licensed User Longtime User Jan 25, 2021 #2 Dim buffer() As String = Regex.Split(CRLF, bigstring) Upvote 0
trepdas Active Member Licensed User Longtime User Jan 25, 2021 #3 Thank you !!! also for the fast reply ? Upvote 0
Gabino A. de la Gala Well-Known Member Licensed User Longtime User Sep 21, 2021 #4 LucaMs said: Dim buffer() As String = Regex.Split(CRLF, bigstring) Click to expand... In my case, working with drag and drop files, I have to do it this way: B4X: Dim buffer() As String = Regex.Split(Chr(13)&Chr(10), e.GetDataObjectForId("text/uri-list")) Upvote 0
LucaMs said: Dim buffer() As String = Regex.Split(CRLF, bigstring) Click to expand... In my case, working with drag and drop files, I have to do it this way: B4X: Dim buffer() As String = Regex.Split(Chr(13)&Chr(10), e.GetDataObjectForId("text/uri-list"))