D DaOne Member Licensed User Longtime User Jun 22, 2014 #1 Can someone tell me why this is crashing my app? B4X: Dim Array1() As String Dim Array1Copy() As String Dim i as Int For i = 0 To 9 Array1Copy(i) = Array1(i) Next
Can someone tell me why this is crashing my app? B4X: Dim Array1() As String Dim Array1Copy() As String Dim i as Int For i = 0 To 9 Array1Copy(i) = Array1(i) Next
Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2014 #2 You have created two empty arrays. Correct code: B4X: Dim Array1(10) As String Dim Array1Copy(Array1.Length) As String For i = 0 To Array1.Length - 1 Array1Copy(i) = Array1(i) Next Upvote 0
You have created two empty arrays. Correct code: B4X: Dim Array1(10) As String Dim Array1Copy(Array1.Length) As String For i = 0 To Array1.Length - 1 Array1Copy(i) = Array1(i) Next