iOS Question defining String array

Arf

Well-Known Member
Licensed User
Longtime User
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
Actually forget the code bit above, I meant this:
B4X:
Dim MaxRandoms() As String = Array As String("zero","one","two","three","four")
 
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
Erm, actually ignore this question for now, I can see something else is clearing the array. will investigate further.
 
Upvote 0
Top