I am trying to understand how XOJO handles array size as, from what I can see, all arrays seem to be unlimited irrespective of whether you try to limit their size.
If, for example, I run the example from the array documentation:
Var people() As String = Array(“John”, “Sally”, “Fred”, “Nancy”)
For Each name As String In People
MessageBox(name)
Next
but change it to, say:
Var people(2) As String = Array(“John”, “Sally”, “Fred”, “Nancy”)
For Each name As String In People
MessageBox(name)
Next
I still get exactly the same 4 name result even though in the 2nd case I would have expected to get only 2?
Can anyone please clarify?
Cheers
Olaf