B4X:
'TextField1.Text is empty - just loaded the layout.
'Logs zero.
Log("TextField1.Text.Length = " & TextField1.Text.Length)
Dim str() As String = Regex.Split(",", TextField1.Text)
'Logs 1 instead of zero.
Log("str length = " & str.Length)
EDIT:
Dim str() As String = Regex.Split(",", "")
does the same.
Last edited: