Hello,
I bumped into something weird. The Regex.split apparently behaves differently between B4J and B4A.
Please try this in B4A and B4J:
In B4J, I get this in the log (which I consider correct):
but in B4A I get that:
I found that because I usually test my code on B4J. i'm using B4A 3.82 and B4J 2.20. It is a bug?
Thank you,
jmon
I bumped into something weird. The Regex.split apparently behaves differently between B4J and B4A.
Please try this in B4A and B4J:
B4X:
Dim Name As String = "Robert"
Dim Letters() As String = Regex.Split("", Name)
For i = 0 To letters.Length -1
Log("Letter " & i & " = " & Letters(i))
Next
In B4J, I get this in the log (which I consider correct):
Note that letter 0 is 'R'Letter 0 = R
Letter 1 = o
Letter 2 = b
Letter 3 = e
Letter 4 = r
Letter 5 = t
but in B4A I get that:
Note that letter 0 is ''Letter 0 =
Letter 1 = R
Letter 2 = o
Letter 3 = b
Letter 4 = e
Letter 5 = r
Letter 6 = t
I found that because I usually test my code on B4J. i'm using B4A 3.82 and B4J 2.20. It is a bug?
Thank you,
jmon