Hello,
I think I have seen this somewhere before, but I cannot find it again and I cannot find this in a manual anywhere.
Is it possible to use a string as the index for an array? For example:
or something similar to that.
Can I do something like:
More importantly. Is there a B4A manual which describes the language features and structure?
Thanks,
Barry.
I think I have seen this somewhere before, but I cannot find it again and I cannot find this in a manual anywhere.
Is it possible to use a string as the index for an array? For example:
B4X:
Dim MA(5) as Int
MA("one") = 1
or something similar to that.
Can I do something like:
B4X:
Dim MA(5) as Int
Dim s as String
s = "one"
MA(s) = 1
More importantly. Is there a B4A manual which describes the language features and structure?
Thanks,
Barry.