Hi
I just have to size an array
and I have this error:
Error occurred on line 42 (Main)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=12
Why?
I just have to size an array
B4X:
Sub Globals
Dim NOME(12) As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
NOME(1)="DSDSD"
NOME(2)="DSDSD"
NOME(3)="DSDSD"
NOME(4)="DSDSD"
NOME(5)="DSDSD"
NOME(6)="DSDSD"
NOME(7)="DSDSD"
NOME(8)="DSDSD"
NOME(9)="DSDSD"
NOME(10)="DSDSD"
NOME(11)="DSDSD"
NOME(12)="DSDSD"
End Sub
Error occurred on line 42 (Main)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=12
Why?