Hello,
I am using the following code:
what the code above does is runs through the msg string and splits the string based on a CRLF so, if I log strSplit(0) it would log 123 if I log strSplit(1) it would log 456 etc.
but I need to find out how many CRLF / strSplit(x) there are.
does anyone have any ideas ?
I am using the following code:
B4X:
Dim msg As String
msg = "123" & CRLF & "456" & CRLF & "789"
Dim strBeforeSplit As String
strBeforeSplit=msg
Dim strSplit() As String
strSplit=Regex.Split(CRLF,strBeforeSplit)
what the code above does is runs through the msg string and splits the string based on a CRLF so, if I log strSplit(0) it would log 123 if I log strSplit(1) it would log 456 etc.
but I need to find out how many CRLF / strSplit(x) there are.
does anyone have any ideas ?