i am trying to split this string
using the following code
i got this arrayindexoutofbound error
any idea why ?
B4X:
14~106~GC2~~700~0~~
using the following code
B4X:
Dim paramstr() As String = Regex.Split("\~", "14~106~GC2~~700~0~~")
For i = 0 To paramstr.Length
Log(paramstr(i))
Next
i got this arrayindexoutofbound error
java.lang.ArrayIndexOutOfBoundsException: length=6; index=6
any idea why ?