Arf Well-Known Member Licensed User Longtime User Nov 19, 2015 #1 In B4A I do this in Globals: B4X: Dim MaxRandoms() As String = Array As String("0","1","2","3","4") And then I can see 0,1,2,3,4 in MaxRandom() in the watch window. but if I do this in B4i, I see MaxRandom() size = 0, so the contents have not been added to it. Is this expected, and how should I define MaxRandoms?
In B4A I do this in Globals: B4X: Dim MaxRandoms() As String = Array As String("0","1","2","3","4") And then I can see 0,1,2,3,4 in MaxRandom() in the watch window. but if I do this in B4i, I see MaxRandom() size = 0, so the contents have not been added to it. Is this expected, and how should I define MaxRandoms?
Arf Well-Known Member Licensed User Longtime User Nov 19, 2015 #2 Actually forget the code bit above, I meant this: B4X: Dim MaxRandoms() As String = Array As String("zero","one","two","three","four") Upvote 0
Actually forget the code bit above, I meant this: B4X: Dim MaxRandoms() As String = Array As String("zero","one","two","three","four")
Arf Well-Known Member Licensed User Longtime User Nov 19, 2015 #3 Erm, actually ignore this question for now, I can see something else is clearing the array. will investigate further. Upvote 0
Erm, actually ignore this question for now, I can see something else is clearing the array. will investigate further.